UniqueId コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
このクラスの新しいインスタンスを作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| UniqueId() |
新しい一意の Guid を使用して、このクラスの新しいインスタンスを作成します。 |
| UniqueId(Byte[]) |
Guidを表すバイト配列を使用して、このクラスの新しいインスタンスを作成します。 |
| UniqueId(Guid) |
Guidを使用して、このクラスの新しいインスタンスを作成します。 |
| UniqueId(String) |
文字列を使用して、このクラスの新しいインスタンスを作成します。 |
| UniqueId(Byte[], Int32) |
Guidを表す |
| UniqueId(Char[], Int32, Int32) |
指定した数のエントリを使用して、 |
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 は nullです。
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 は nullです。
適用対象
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 は nullです。
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 は nullです。
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)
パラメーター
- count
- Int32
offsetから始まる、使用する配列エントリの数。
- 属性
例外
chars は nullです。
offset 0 より小さいか、配列の長さより大きい。
-または-
count 0 より小さいか、配列の長さから offsetを引いた長さより大きい。
count は 0 に等しくなります。