UniqueId Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A unique identifier optimized for Guids.
public ref class UniqueId
public class UniqueId
type UniqueId = class
Public Class UniqueId
- Inheritance
-
UniqueId
Remarks
This class can hold any string value, but has optimizations for dealing with Guids.
Constructors
UniqueId() |
Creates a new instance of this class with a new, unique Guid. |
UniqueId(Byte[], Int32) |
Creates a new instance of this class starting from an offset within a |
UniqueId(Byte[]) |
Creates a new instance of this class using a byte array that represents a Guid. |
UniqueId(Char[], Int32, Int32) |
Creates a new instance of this class starting from an offset within a |
UniqueId(Guid) |
Creates a new instance of this class using a Guid. |
UniqueId(String) |
Creates a new instance of this class using a string. |
Properties
CharArrayLength |
Gets the length of the string representation of the UniqueId. |
IsGuid |
Methods
Equals(Object) |
Tests whether an object equals this UniqueId. |
GetHashCode() |
Creates a hash-code representation of this UniqueId. |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToCharArray(Char[], Int32) |
Puts the UniqueId value into a |
ToString() |
Displays the UniqueId value in string format. |
TryGetGuid(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. |
TryGetGuid(Guid) |
Operators
Equality(UniqueId, UniqueId) |
Overrides the equality operator to test for equality of two UniqueIds. |
Inequality(UniqueId, UniqueId) |
Overrides the equality operator to test for inequality of two UniqueIds. |