RelationCreate Method

Creates a new Relation instance, which is newly initialized using the VCard-object that represents a person or organization.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static Relation Create(
	VCard vCard
)

Parameters

vCard  VCard
The VCard-object that represents a person or organization to whom there is a relationship.

Return Value

Relation
The newly created Relation instance.

Remarks

vCard 2.1 and vCard 3.0 can embed nested vCards if the flag Agent is set in their RelationType property. When serializing a vCard 4.0, embedded VCards will be automatically replaced by their ContactID references and appended as separate vCards to the VCF file.

Exceptions

ArgumentNullExceptionvCard is null.

See Also