UniqueId Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

A unique identifier optimized for Guids.

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

System::Object
  System.Xml::UniqueId

public ref class UniqueId 

NameDescription
System_CAPS_pubmethodUniqueId()

Creates a new instance of this class with a new, unique Guid.

System_CAPS_pubmethodUniqueId(array<Byte>^)

Creates a new instance of this class using a byte array that represents a Guid.

System_CAPS_pubmethodUniqueId(array<Byte>^, Int32)

Creates a new instance of this class starting from an offset within a byte array that represents a Guid.

System_CAPS_pubmethodUniqueId(array<Char>^, Int32, Int32)

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

System_CAPS_pubmethodUniqueId(Guid)

Creates a new instance of this class using a Guid.

System_CAPS_pubmethodUniqueId(String^)

Creates a new instance of this class using a string.

NameDescription
System_CAPS_pubpropertyCharArrayLength

Gets the length of the string representation of the UniqueId.

System_CAPS_pubpropertyIsGuid

Indicates whether the UniqueId is a Guid.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Tests whether an object equals this UniqueId.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Creates a hash-code representation of this UniqueId.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToCharArray(array<Char>^, Int32)

Puts the UniqueId value into a char array.

System_CAPS_pubmethodToString()

Displays the UniqueId value in string format.(Overrides Object::ToString().)

System_CAPS_pubmethodTryGetGuid(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 offest.

System_CAPS_pubmethodTryGetGuid(Guid%)

Tries to get the value of the UniqueId as a Guid.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(UniqueId^, UniqueId^)

Overrides the equality operator to test for equality of two UniqueIds.

System_CAPS_puboperatorSystem_CAPS_staticInequality(UniqueId^, UniqueId^)

Overrides the equality operator to test for inequality of two UniqueIds.

This class can hold any string value, but has optimizations for dealing with Guids.

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

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: