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.1.0+9753915cd0f8006e7e5b4f62aa63aa3651006f06
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