Freigeben über


UniqueId.ToCharArray Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Puts the UniqueId value into a char array.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Function ToCharArray ( _
    chars As Char(), _
    offset As Integer _
) As Integer
[SecuritySafeCriticalAttribute]
public int ToCharArray(
    char[] chars,
    int offset
)

Parameters

Return Value

Type: System.Int32
Number of entries in the char array filled by the UniqueId value.

Exceptions

Exception Condition
ArgumentNullException

chars is nulla 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

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.