VCardRootPackageVCardPackage Property |
Namespace: GroupDocs.Metadata.Formats.BusinessCard
using (Metadata metadata = new Metadata(Constants.InputVcf)) { var root = metadata.GetRootPackage<VCardRootPackage>(); foreach (var vCard in root.VCardPackage.Cards) { if (vCard.IdentificationRecordset.PhotoUriRecords != null) { // Iterate all photos represented by URIs foreach (var photoUriRecord in vCard.IdentificationRecordset.PhotoUriRecords) { // Print the property value Console.WriteLine(photoUriRecord.Value); // Print some additional parameters of the property Console.WriteLine(photoUriRecord.ContentType); Console.WriteLine(photoUriRecord.MediaTypeParameter); if (photoUriRecord.TypeParameters != null) { foreach (string parameter in photoUriRecord.TypeParameters) { Console.WriteLine(parameter); } } Console.WriteLine(photoUriRecord.PrefParameter); } } } }