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.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
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.
| Exception | Condition |
|---|---|
| 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. |
Show: