VcfOpts Enumeration

Named constants to specify options for writing VCF files. The constants can be combined.

Definition

Namespace: FolkerKinzel.VCards.Enums
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
[FlagsAttribute]
public enum VcfOpts

Remarks

  Tip

When working with the enum use the extension methods from the VcfOptsExtension class.

The flags WriteWabExtensions, WriteXExtensions, WriteEvolutionExtensions, and WriteKAddressbookExtensions control the automatic generation of NonStandardProperty objects. Even if these flags are set, the NonStandardProperty objects are only generated automatically, if the selected vCard standard does not allow a standardized equivalent.

Members

None0All flags are unset.
WriteGroups1Set the flag to write property group identifiers.
WriteEmptyProperties2Set the flag to also write empty properties to the vCard.
AppendAgentAsSeparateVCard4Set the flag to append in vCard 2.1 and vCard 3.0 embedded AGENT-vCards in the VCF file to the main vCard.
WriteNonStandardParameters8 Set the flag to write non-standard parameters to the VCF file.
All-1All flags are set.
WriteNonStandardProperties16 Set the flag to write NonStandardProperty objects to the VCF file.
WriteRfc6474Extensions32Set the flag to write the extensions from RFC 6474 (BIRTHPLACE, DEATHPLACE, DEATHDATE). (Beginning from vCard 4.0.)
WriteRfc6715Extensions64Set the flag to write the extensions from RFC 6715 (EXPERTISE, HOBBY, INTEREST, ORG-DIRECTORY). (Beginning from vCard 4.0.)
WriteImppExtension128Set the flag to write the extension IMPP from RFC 4770 in vCard 3.0.
WriteXExtensions256Set the flag to write the following vCard properties (if necessary): X-AIM, X-GADUGADU, X-GOOGLE-TALK, X-GTALK, X-ICQ, X-JABBER, X-MSN, X-SKYPE, X-TWITTER, X-YAHOO, X-MS-IMADDRESS, X-GENDER, X-ANNIVERSARY, X-SPOUSE, X-SOCIALPROFILE, and the X-SERVICE-TYPE parameter.
WriteEvolutionExtensions512Set the flag to write the following vCard properties if necessary: X-EVOLUTION-ANNIVERSARY, X-EVOLUTION-SPOUSE.
WriteKAddressbookExtensions1,024Set the flag to write the following vCard properties if necessary: X-KADDRESSBOOK-X-IMAddress, X-KADDRESSBOOK-X-Anniversary, X-KADDRESSBOOK-X-SpouseName.
WriteWabExtensions2,048Set the flag to write the following vCard properties if necessary: X-WAB-GENDER, X-WAB-WEDDING-ANNIVERSARY, X-WAB-SPOUSE-NAME.
AllowMultipleAdrAndLabelInVCard214,096Set the flag to allow multiple "ADR" and "LABEL" properties to be written into a vCard 2.1.
UpdateTimeStamp8,192 Set the flag to update the Updated property automatically when serializing VCF.
SetPropertyIDs16,384 Set the flag to call SetPropertyIDs automatically when serializing a VCard as vCard 4.0 (or higher).
SetIndexes32,768 Set the flag to set the Index properties in all VCardProperty collections that contains more than one item automatically when serializing vCard 4.0 (or higher). The values depend on the positions of the VCardProperty objects in the collection and on the flag WriteEmptyProperties. Any previously existing values will be overwritten.
WriteRfc2739Extensions65,536Set the flag to write the extensions from RFC 2739 (FBURL, CALURI, CALADRURI) in vCard 3.0.
WriteRfc8605Extensions131,072Set the flag to write the extensions from RFC 8605 (FBURL, CONTACT-URI property, CC parameter) in vCard 4.0.
WriteRfc9554Extensions262,144Set the flag to write the extensions from RFC 9554 in vCard 4.0.
WriteRfc9555Extensions524,288Set the flag to write the extensions from RFC 9555 in vCard 4.0.
Default995,809

Default setting

(corresponds to WriteGroups | WriteRfc6474Extensions | WriteRfc6715Extensions | WriteImppExtension | WriteXExtensions | AllowMultipleAdrAndLabelInVCard21 | UpdateTimeStamp | WriteRfc2739Extensions | WriteRfc8605Extensions | WriteRfc9554Extensions) | WriteRfc9555Extensions)

See Also