ContactIDCreate(String) Method

Creates a new ContactID instance from a specified String.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public static ContactID Create(
	string text
)

Parameters

text  String
A String that can be used as identifier.

Return Value

ContactID
The newly created ContactID instance.

Remarks

If text represents a Guid, a ContactID instance with this Guid value will be created. If text represents an absolute Uri, a ContactID instance containing a Uri will be created.

Exceptions

ArgumentNullExceptiontext is null.
ArgumentExceptiontext is an empty String or consists only of white space.

See Also