UniqueId Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Represents a unique identifier optimized for GUIDs.
Inheritance Hierarchy
System.Object
System.Xml.UniqueId
Namespace: System.Xml
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Syntax
'Declaration
Public Class UniqueId
public class UniqueId
The UniqueId type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UniqueId() | Creates a new instance of the UniqueId class with a new, unique GUID. | |
UniqueId(array<Byte[]) | Creates a new instance of the UniqueId class using a byte array that represents a Guid. | |
UniqueId(Guid) | Creates a new instance of the UniqueId class using a Guid. | |
UniqueId(String) | Creates a new instance of the UniqueId class using a string. | |
UniqueId(array<Byte[], Int32) | Creates a new instance of the UniqueId class that starts from an offset within a byte array that represents a Guid. | |
UniqueId(array<Char[], Int32, Int32) | Creates a new instance of this class starting from an offset within a char using a specified number of entries. |
Top
Properties
Name | Description | |
---|---|---|
CharArrayLength | Gets a value that indicates the length of the string representation of the UniqueId. | |
IsGuid | Gets a value that indicates whether the UniqueId is a Guid. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Tests whether an object equals this UniqueId. (Overrides Object.Equals(Object).) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Creates a hash-code representation of this UniqueId. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToCharArray | Puts the UniqueId value into a char array. | |
ToString | Displays the UniqueId value in string format. (Overrides Object.ToString().) | |
TryGetGuid(Guid%) | Tries to get the value of the UniqueId as a Guid. | |
TryGetGuid(array<Byte[], Int32) | Tries to get the value of the UniqueId as a Guid and store it in the given byte array at the specified offset. |
Top
Operators
Name | Description | |
---|---|---|
Equality | Overrides the equality operator to test for equality of two UniqueId objects. | |
Inequality | Overrides the equality operator to test for inequality of two UniqueIds. |
Top
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.