指定した整数とバイト配列を使用して、Guid クラスの新しいインスタンスを初期化します。
名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文
'宣言
Public Sub New ( _
a As Integer, _
b As Short, _
c As Short, _
d As Byte() _
)
'使用
Dim a As Integer
Dim b As Short
Dim c As Short
Dim d As Byte()
Dim instance As New Guid(a, b, c, d)
public Guid (
int a,
short b,
short c,
byte[] d
)
public:
Guid (
int a,
short b,
short c,
array<unsigned char>^ d
)
public Guid (
int a,
short b,
short c,
byte[] d
)
public function Guid (
a : int,
b : short,
c : short,
d : byte[]
)
パラメータ
- a
GUID の最初の 4 バイト。
- b
GUID の次の 2 バイト。
- c
GUID の次の 2 バイト。
- d
GUID の残りの 8 バイト。
例外
例外の種類 | 条件 |
---|---|
d が null 参照 (Visual Basic では Nothing) です。 |
|
d の長さが 8 バイトではありません。 |
使用例
Guid(1,2,3,new byte[]{0,1,2,3,4,5,6,7})
と指定すると、"00000001-0002-0003-0001-020304050607" に相当する Guid が作成されます。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
.NET Compact Framework
サポート対象 : 2.0、1.0