Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

UniqueId Class

Represents a unique identifier optimized for GUIDs.

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

The UniqueId type exposes the following members.

  NameDescription
Public methodSupported by Silverlight for Windows PhoneUniqueId()Creates a new instance of the UniqueId class with a new, unique GUID.
Public methodSupported by Silverlight for Windows PhoneUniqueId(Byte[])Creates a new instance of the UniqueId class using a byte array that represents a Guid.
Public methodSupported by Silverlight for Windows PhoneUniqueId(Guid)Creates a new instance of the UniqueId class using a Guid.
Public methodSupported by Silverlight for Windows PhoneUniqueId(String)Creates a new instance of the UniqueId class using a string.
Public methodSupported by Silverlight for Windows PhoneUniqueId(Byte[], Int32)Creates a new instance of the UniqueId class that starts from an offset within a byte array that represents a Guid.
Public methodSupported by Silverlight for Windows PhoneUniqueId(Char[], Int32, Int32)Creates a new instance of this class starting from an offset within a char using a specified number of entries.
Top
  NameDescription
Public propertySupported by Silverlight for Windows PhoneCharArrayLengthGets a value that indicates the length of the string representation of the UniqueId.
Public propertySupported by Silverlight for Windows PhoneIsGuidGets a value that indicates whether the UniqueId is a Guid.
Top
  NameDescription
Public methodSupported by Silverlight for Windows PhoneEqualsTests whether an object equals this UniqueId. (Overrides Object.Equals(Object).)
Protected methodSupported by Silverlight for Windows PhoneFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneGetHashCodeCreates a hash-code representation of this UniqueId. (Overrides Object.GetHashCode().)
Public methodSupported by Silverlight for Windows PhoneGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneToCharArrayPuts the UniqueId value into a char array.
Public methodSupported by Silverlight for Windows PhoneToStringDisplays the UniqueId value in string format. (Overrides Object.ToString().)
Public methodSupported by Silverlight for Windows PhoneTryGetGuid(Guid)Tries to get the value of the UniqueId as a Guid.
Public methodSupported by Silverlight for Windows PhoneTryGetGuid(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
  NameDescription
Public operatorStatic memberSupported by Silverlight for Windows PhoneEqualityOverrides the equality operator to test for equality of two UniqueId objects.
Public operatorStatic memberSupported by Silverlight for Windows PhoneInequalityOverrides the equality operator to test for inequality of two UniqueIds.
Top

This class can hold any string value, but is optimized for working with Guids.

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.