Bewerken

Share via


UniqueId Constructors

Definition

Creates a new instance of this class.

Overloads

UniqueId()

Creates a new instance of this class with a new, unique Guid.

UniqueId(Byte[])

Creates a new instance of this class using a byte array that represents a Guid.

UniqueId(Guid)

Creates a new instance of this class using a Guid.

UniqueId(String)

Creates a new instance of this class using a string.

UniqueId(Byte[], Int32)

Creates a new instance of this class starting from an offset within a byte array that represents a Guid.

UniqueId(Char[], Int32, Int32)

Creates a new instance of this class starting from an offset within a char using a specified number of entries.

UniqueId()

Source:
UniqueId.cs
Source:
UniqueId.cs
Source:
UniqueId.cs

Creates a new instance of this class with a new, unique Guid.

public:
 UniqueId();
public UniqueId ();
Public Sub New ()

Applies to

UniqueId(Byte[])

Source:
UniqueId.cs
Source:
UniqueId.cs
Source:
UniqueId.cs

Creates a new instance of this class using a byte array that represents a Guid.

public:
 UniqueId(cli::array <System::Byte> ^ guid);
public UniqueId (byte[] guid);
new System.Xml.UniqueId : byte[] -> System.Xml.UniqueId
Public Sub New (guid As Byte())

Parameters

guid
Byte[]

A byte array that represents a Guid.

Exceptions

guid is null.

guid provides less than 16 valid bytes.

Remarks

Only the first 16 bytes of the array are used.

Applies to

UniqueId(Guid)

Source:
UniqueId.cs
Source:
UniqueId.cs
Source:
UniqueId.cs

Creates a new instance of this class using a Guid.

public:
 UniqueId(Guid guid);
public UniqueId (Guid guid);
new System.Xml.UniqueId : Guid -> System.Xml.UniqueId
Public Sub New (guid As Guid)

Parameters

guid
Guid

A Guid.

Exceptions

guid is null.

Applies to

UniqueId(String)

Source:
UniqueId.cs
Source:
UniqueId.cs
Source:
UniqueId.cs

Creates a new instance of this class using a string.

public:
 UniqueId(System::String ^ value);
public UniqueId (string value);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public UniqueId (string value);
new System.Xml.UniqueId : string -> System.Xml.UniqueId
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
new System.Xml.UniqueId : string -> System.Xml.UniqueId
Public Sub New (value As String)

Parameters

value
String

A string used to generate the UniqueId.

Attributes

Exceptions

value is null.

Length of value is zero.

Remarks

Any string non-zero length string is a valid value.

Applies to

UniqueId(Byte[], Int32)

Source:
UniqueId.cs
Source:
UniqueId.cs
Source:
UniqueId.cs

Creates a new instance of this class starting from an offset within a byte array that represents a Guid.

public:
 UniqueId(cli::array <System::Byte> ^ guid, int offset);
public UniqueId (byte[] guid, int offset);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public UniqueId (byte[] guid, int offset);
new System.Xml.UniqueId : byte[] * int -> System.Xml.UniqueId
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
new System.Xml.UniqueId : byte[] * int -> System.Xml.UniqueId
Public Sub New (guid As Byte(), offset As Integer)

Parameters

guid
Byte[]

A byte array that represents a Guid.

offset
Int32

Offset position within the byte array that represents a Guid.

Attributes

Exceptions

guid is null.

offset less than zero or greater than the length of the array.

guid and offset provide less than 16 valid bytes.

Remarks

Only the first 16 bytes at the specified offset are used.

Applies to

UniqueId(Char[], Int32, Int32)

Source:
UniqueId.cs
Source:
UniqueId.cs
Source:
UniqueId.cs

Creates a new instance of this class starting from an offset within a char using a specified number of entries.

public:
 UniqueId(cli::array <char> ^ chars, int offset, int count);
public UniqueId (char[] chars, int offset, int count);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
public UniqueId (char[] chars, int offset, int count);
new System.Xml.UniqueId : char[] * int * int -> System.Xml.UniqueId
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
new System.Xml.UniqueId : char[] * int * int -> System.Xml.UniqueId
Public Sub New (chars As Char(), offset As Integer, count As Integer)

Parameters

chars
Char[]

A char array that represents a Guid.

offset
Int32

Offset position within the char array that represents a Guid.

count
Int32

Number of array entries to use, starting from offset.

Attributes

Exceptions

chars is null.

offset less than zero or greater than the length of the array.

-or-

count less than zero or greater than the length of the array minus offset.

count equals zero.

Applies to