Export (0) Print
Expand All

Guid Constructor (Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

.NET Framework 1.1

Initializes a new instance of the Guid class using the specified integers and bytes.

[Visual Basic]
Public Sub New( _
   ByVal a As Integer, _
   ByVal b As Short, _
   ByVal c As Short, _
   ByVal d As Byte, _
   ByVal e As Byte, _
   ByVal f As Byte, _
   ByVal g As Byte, _
   ByVal h As Byte, _
   ByVal i As Byte, _
   ByVal j As Byte, _
   ByVal k As Byte _
)
[C#]
public Guid(
   int a,
 short b,
 short c,
 byte d,
 byte e,
 byte f,
 byte g,
 byte h,
 byte i,
 byte j,
 byte k
);
[C++]
public: Guid(
   int a,
 short b,
 short c,
 unsigned char d,
 unsigned char e,
 unsigned char f,
 unsigned char g,
 unsigned char h,
 unsigned char i,
 unsigned char j,
 unsigned char k
);
[JScript]
public function Guid(
   a : int,
 b : Int16,
 c : Int16,
 d : Byte,
 e : Byte,
 f : Byte,
 g : Byte,
 h : Byte,
 i : Byte,
 j : Byte,
 k : Byte
);

Parameters

a
The first 4 bytes of the GUID.
b
The next 2 bytes of the GUID.
c
The next 2 bytes of the GUID.
d
The next byte of the GUID.
e
The next byte of the GUID.
f
The next byte of the GUID.
g
The next byte of the GUID.
h
The next byte of the GUID.
i
The next byte of the GUID.
j
The next byte of the GUID.
k
The next byte of the GUID.

Remarks

Specifying individual bytes in this manner can be used to circumvent byte order restrictions (big-endian or little-endian byte order) on particular types of computers.

Example

Guid(0xa,0xb,0xc,0,1,2,3,4,5,6,7) creates a Guid that corresponds to "0000000a-000b-000c-0001-020304050607".

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

Guid Structure | Guid Members | System Namespace | Guid Constructor Overload List

Show:
© 2014 Microsoft