UniqueId Constructor (Byte[], Int32)

UniqueId Constructor (Byte(), Int32)

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

Creates a new instance of the UniqueId class that starts from an offset within a byte array that represents a Guid.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

'Declaration
Public Sub New ( _
	guid As Byte(), _
	offset As Integer _
)

Parameters

guid
Type: System.Byte ()
A byte array that represents a Guid.
offset
Type: System.Int32
Offset position within the byte array that represents a Guid.

ExceptionCondition
ArgumentNullException

guid is Nothing.

ArgumentOutOfRangeException

offset is less than zero or greater than the length of the array.

ArgumentException

guid and offset provide less than 16 valid bytes.

Only the first 16 bytes at the specified offset are used.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft