NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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

Initializes a new instance of the Guid class based on the values of the specified arguments.

[Visual Basic]
Overloads 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 byte 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 the bytes in this manner avoids endianness issues.

Example

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

See Also

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