Class JCard
Static class for handling JCards. A JCard is a VCard formatted as a JSON object. RFC 6350 specifies the VCard format. RFC 7095 specifies the JCard JSON format.
Inherited Members
Namespace: AdditionalData
Assembly: Ng911Lib.dll
Syntax
public static class JCard
Methods
| Edit this page View SourceJCardStringToVCardType(string)
Converts a JCard contained in a string into a vcardType.
Declaration
public static vcardType JCardStringToVCardType(string strJcard)
Parameters
Type | Name | Description |
---|---|---|
string | strJcard | Input string containing a JCard JSON object. |
Returns
Type | Description |
---|---|
vcardType | Returns a vcardType if successful or null if an error occurred. |
Exceptions
Type | Condition |
---|---|
JsonException | Thrown if an error occurred during de-serialization. |
XcardToJsonString(vcardType)
Converts a vcardType (XML formatted VCard) into a JSON formatted VCard and returns a string.
Declaration
public static string XcardToJsonString(vcardType vcard)
Parameters
Type | Name | Description |
---|---|---|
vcardType | vcard | Input vcardType to convert to a JSON string |
Returns
Type | Description |
---|---|
string | Returns the JSON formatted VCard as a string. |