UniqueId.ToCharArray Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Puts the UniqueId value into a char array.
Namespace: System.Xml
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Syntax
Public Function ToCharArray ( _
chars As Char(), _
offset As Integer _
) As Integer
public int ToCharArray(
char[] chars,
int offset
)
Parameters
- chars
Type: array<System..::.Char>[]()[]
The char array.
- offset
Type: System..::.Int32
Position in the char array to start inserting the UniqueId value.
Return Value
Type: System..::.Int32
Number of entries in the char array filled by the UniqueId value.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | chars is nullNothingnullptra null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | offset is less than zero or greater than the length of the array. |
ArgumentException | guid and offset provide less than 16 valid bytes. |
Remarks
This method is unsafe.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone