# VCardVersion

Supported vCard syntax versions. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.Email API Reference.

Enum 

`OfficeIMO.Email`

**Namespace**

`OfficeIMO.Email`

**Assembly**

`OfficeIMO.Email`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[VCardDocument.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Contact/VCardDocument.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Supported vCard syntax versions.

## Inheritance

- Enum
- VCardVersion

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [VCardDocument.GetVersion](/api/email/officeimo-email-vcarddocument/#method-getversion-officeimo-email-contentlinecomponent)
- Field [VCardVersion.V2_1](/api/email/officeimo-email-vcardversion/#field-v2-1)
- Field [VCardVersion.V3_0](/api/email/officeimo-email-vcardversion/#field-v3-0)
- Field [VCardVersion.V4_0](/api/email/officeimo-email-vcardversion/#field-v4-0)

### Accepted by parameters 2

- Method [VCardDocument.AddCard](/api/email/officeimo-email-vcarddocument/#method-addcard-officeimo-email-vcardversion) parameter `version`
- Method [VCardDocument.SetVersion](/api/email/officeimo-email-vcarddocument/#method-setversion-officeimo-email-contentlinecomponent-officeimo-email-vcardversion) parameter `version`

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from Enum

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

`public override string ToString()` [#](#method-tostring)

Inherited from Enum

Returns

`string`

`public string ToString(string? format)` [#](#method-tostring-string)

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const VCardVersion V2_1` [#](#field-v2-1)

[VCardDocument.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Contact/VCardDocument.cs#L6)

Legacy vCard 2.1 compatibility syntax.

Value: `21`

`public const VCardVersion V3_0` [#](#field-v3-0)

[VCardDocument.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Contact/VCardDocument.cs#L8)

vCard 3.0 syntax.

Value: `30`

`public const VCardVersion V4_0` [#](#field-v4-0)

[VCardDocument.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Email/Contact/VCardDocument.cs#L10)

RFC 6350 vCard 4.0 syntax.

Value: `40`

<!-- PowerForge markdown artifact sha256:DAF4B76B8B0CBEF67B88DF03C62811DCCAB140517B17A60E2E828DE7446C8A0F -->
