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[])

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 _
)
[C#]
public Guid(
   int a,
   short b,
   short c,
   byte[] d
);
[C++]
public: Guid(
   int a,
   short b,
   short c,
   unsigned char* d[]
);
[JScript]
public function Guid(
   a : int,
   b : Int16,
   c : Int16,
   d : 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 remaining 8 bytes of the GUID.

Exceptions

Exception Type Condition
ArgumentException is thrown if the byte array is not 8 bytes long.
ArgumentNullException if d is null.

Remarks

The string may begin and end with braces: "{", and "}."

Example

Guid(1,2,3, {0, 1,2,3,4,5,6,7}) creates a Guid that corresponds to "00000001-0002-0003-0001-020304050607".

See Also

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