This documentation is archived and is not being maintained.

Guid Constructor (Byte[])

.NET Framework 1.1

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

[Visual Basic]
Public Sub New( _
   ByVal b() As Byte _
)
[C#]
public Guid(
   byte[] b
);
[C++]
public: Guid(
   unsigned char b __gc[]
);
[JScript]
public function Guid(
   b : Byte[]
);

Parameters

b
A 16 element byte array containing values with which to initialize the GUID.

Exceptions

Exception Type Condition
ArgumentNullException b is a null reference (Nothing in Visual Basic).
ArgumentException b is not 16 bytes long.

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: