ContactID Class

A union that encapsulates a globally unique identifier corresponding to the entity associated with the vCard. The value of this identifier can be either a Guid, a Uri, or a String.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public abstract class ContactID : IEquatable<ContactID>
Inheritance
Object    ContactID
Implements
IEquatableContactID

Constructors

ContactIDInitializes a new instance of the ContactID class

Properties

Empty A singleton whose IsEmpty property returns true.
Guid Gets the encapsulated Guid, or null, if the encapsulated value has a different Type.
IsEmptytrue if the instance doesn't identify anything, otherwise false.
String Gets the encapsulated String, or null, if the encapsulated value has a different Type.
Uri Gets the encapsulated absolute Uri, or null, if the encapsulated value has a different Type.

Methods

ConvertTResult(FuncGuid, TResult, FuncUri, TResult, FuncString, TResult) Converts the encapsulated value to TResult.
ConvertTArg, TResult(TArg, FuncGuid, TArg, TResult, FuncUri, TArg, TResult, FuncString, TArg, TResult) Converts the encapsulated value to TResult and allows to specify an argument for the conversion.
Create Creates a new ContactID instance from a newly created Guid.
Create(Guid) Creates a new ContactID instance from a specified Guid.
Create(String) Creates a new ContactID instance from a specified String.
Create(Uri) Creates a new ContactID instance from a specified absolute Uri.
Equals(ContactID)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Switch(ActionGuid, ActionUri, ActionString) Performs an ActionT depending on the Type of the encapsulated value.
SwitchTArg(TArg, ActionGuid, TArg, ActionUri, TArg, ActionString, TArg) Performs an ActionT depending on the Type of the encapsulated value and allows to pass an argument to the delegates.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Operators

Equality(ContactID, ContactID) Overloads the equality operator for ContactID instances.
Inequality(ContactID, ContactID) Overloads the not-equal-to operator for ContactID instances.

See Also