RawData Class

A union that encapsulates raw data in a VCard. This can be either an array of Bytes, an absolute Uri, or a String.

Definition

Namespace: FolkerKinzel.VCards.Models
Assembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
C#
public sealed class RawData
Inheritance
Object    RawData

Properties

Bytes Gets the encapsulated Byte array, or null, if the encapsulated value has a different Type.
IsEmptytrue if the instance doesn't contain any data, otherwise false.
MediaTypeSpecifies the MIME type for the data.
String Gets the encapsulated String, or null, if the encapsulated value has a different Type.
Uri Gets the encapsulated Uri, or null, if the encapsulated value has a different Type.

Methods

ConvertTResult(FuncByte, TResult, FuncUri, TResult, FuncString, TResult) Converts the encapsulated value to TResult.
ConvertTArg, TResult(TArg, FuncByte, TArg, TResult, FuncUri, TArg, TResult, FuncString, TArg, TResult) Converts the encapsulated value to TResult and allows to specify an argument for the conversion.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FromBytes Creates a new RawData instance from an array of Bytes.
FromFile Creates a new RawData instance from the binary content of a file.
FromText Creates a new RawData instance from text.
FromUri Creates a new RawData instance from an absolute Uri, which references external data.
GetFileTypeExtension Gets an appropriate file type extension.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Switch(ActionByte, ActionUri, ActionString) Performs an ActionT depending on the Type of the encapsulated value.
SwitchTArg(TArg, ActionByte, 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.
(Overrides ObjectToString)

See Also