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 _
public Guid(
   byte[] b
public: Guid(
   unsigned char b __gc[]
public function Guid(
   b : Byte[]


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


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


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