UniqueId コンストラクター

定義

このクラスの新しいインスタンスを作成します。

オーバーロード

名前 説明
UniqueId()

新しい一意の Guid を使用して、このクラスの新しいインスタンスを作成します。

UniqueId(Byte[])

Guidを表すバイト配列を使用して、このクラスの新しいインスタンスを作成します。

UniqueId(Guid)

Guidを使用して、このクラスの新しいインスタンスを作成します。

UniqueId(String)

文字列を使用して、このクラスの新しいインスタンスを作成します。

UniqueId(Byte[], Int32)

Guidを表すbyte配列内のオフセットから開始して、このクラスの新しいインスタンスを作成します。

UniqueId(Char[], Int32, Int32)

指定した数のエントリを使用して、 char 内のオフセットから開始して、このクラスの新しいインスタンスを作成します。

UniqueId()

新しい一意の Guid を使用して、このクラスの新しいインスタンスを作成します。

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

適用対象

UniqueId(Byte[])

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())

パラメーター

guid
Byte[]

Guidを表すバイト配列。

例外

guidnullです。

guid は有効なバイト数が 16 未満です。

注釈

配列の最初の 16 バイトのみが使用されます。

適用対象

UniqueId(Guid)

Guidを使用して、このクラスの新しいインスタンスを作成します。

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

パラメーター

guid
Guid

Guid です。

例外

guidnullです。

適用対象

UniqueId(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)

パラメーター

value
String

UniqueIdの生成に使用される文字列。

属性

例外

valuenullです。

valueの長さは 0 です。

注釈

長さが 0 以外の文字列は有効な値です。

適用対象

UniqueId(Byte[], Int32)

Guidを表すbyte配列内のオフセットから開始して、このクラスの新しいインスタンスを作成します。

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)

パラメーター

guid
Byte[]

Guidを表すbyte配列。

offset
Int32

Guidを表すbyte配列内のオフセット位置。

属性

例外

guidnullです。

offset 0 より小さいか、配列の長さより大きい。

guid 有効なバイト数が 16 バイト未満 offset

注釈

指定したオフセットの最初の 16 バイトのみが使用されます。

適用対象

UniqueId(Char[], Int32, Int32)

指定した数のエントリを使用して、 char 内のオフセットから開始して、このクラスの新しいインスタンスを作成します。

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)

パラメーター

chars
Char[]

Guidを表すchar配列。

offset
Int32

Guidを表すchar配列内のオフセット位置。

count
Int32

offsetから始まる、使用する配列エントリの数。

属性

例外

charsnullです。

offset 0 より小さいか、配列の長さより大きい。

-または-

count 0 より小さいか、配列の長さから offsetを引いた長さより大きい。

count は 0 に等しくなります。

適用対象