Relation Class

A union that encapsulates the data that describes a person or organization with whom a relationship exists. This can be either a VCard, or a ContactID.

Definition

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

Properties

ContactID Gets the encapsulated ContactID, or null, if the encapsulated value has a different Type.
Empty An instance whose IsEmpty property returns true.
IsEmptytrue if the instance if the instance does not relate to anything, otherwise false.
VCard Gets the encapsulated VCard, or null, if the encapsulated value has a different Type.

Methods

ConvertTResult(FuncVCard, TResult, FuncContactID, TResult) Converts the encapsulated value to TResult.
ConvertTArg, TResult(TArg, FuncVCard, TArg, TResult, FuncContactID, TArg, TResult) Converts the encapsulated value to TResult and allows to specify an argument for the conversion.
Create Creates a new Relation instance, which is newly initialized using the VCard-object that represents a person or organization.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Equals(Relation)Indicates whether the current object is equal to another object of the same type.
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Switch(ActionVCard, ActionContactID) Performs an ActionT depending on the Type of the encapsulated value.
SwitchTArg(TArg, ActionVCard, TArg, ActionContactID, 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.
(Overrides ObjectToString)

Operators

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

See Also