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[] );
Exception Type | Condition |
---|---|
ArgumentException | is thrown if the byte array is not 8 bytes long. |
ArgumentNullException | if d is null. |
The string may begin and end with braces: "{", and "}."
Guid(1,2,3, {0, 1,2,3,4,5,6,7}) creates a Guid that corresponds to "00000001-0002-0003-0001-020304050607".
Guid Structure | Guid Members | System Namespace | Guid Constructor Overload List