Guid Constructor (Byte[])

Guid Constructor (Byte())

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Sub New ( _
	b As Byte() _
)

Parameters

b
Type: System.Byte ()
A 16 element byte array containing values with which to initialize the GUID.

ExceptionCondition
ArgumentNullException

b is Nothing.

ArgumentException

b is not 16 bytes long.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft