Udostępnij za pośrednictwem


UniqueId Constructor (array<Char[], Int32, Int32)

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

Creates a new instance of this class starting from an offset within a char using a specified number of entries.

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

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Sub New ( _
    chars As Char(), _
    offset As Integer, _
    count As Integer _
)
[SecuritySafeCriticalAttribute]
public UniqueId(
    char[] chars,
    int offset,
    int count
)

Parameters

  • offset
    Type: System.Int32
    Offset position within the char array that represents a Guid.
  • count
    Type: System.Int32
    Number of array entries to use, starting from offset.

Exceptions

Exception Condition
ArgumentNullException

chars is nulla null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

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

ArgumentOutOfRangeException

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

FormatException

count equals zero.

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.