Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UniqueId::ToCharArray Method (array<Char>^, Int32)

 

Puts the UniqueId value into a char array.

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

public:
int ToCharArray(
	array<wchar_t>^ 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.

Exception Condition
ArgumentNullException

chars is null.

ArgumentOutOfRangeException

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

ArgumentException

guid and offset provide less than 16 valid bytes.

This method is unsafe.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft