VCardPackage
VCardRootPackage.VCardPackage property
Gets the VCard metadata package.
public VCardPackage VCardPackage { get; }
Property Value
The VCard metadata package.
Remarks
Learn more
Examples
This code sample demonstrates how to extract vCard fields along with descriptive parameters.
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);
}
}
}
}
See Also
- class VCardPackage
- class VCardRootPackage
- namespace GroupDocs.Metadata.Formats.BusinessCard
- assembly GroupDocs.Metadata