UniqueId UniqueId UniqueId UniqueId Class

Definition

A unique identifier optimized for Guids.

public ref class UniqueId
public class UniqueId
type UniqueId = class
Public Class UniqueId
Inheritance
UniqueIdUniqueIdUniqueIdUniqueId

Remarks

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

Constructors

UniqueId() UniqueId() UniqueId() UniqueId()

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

UniqueId(Byte[]) UniqueId(Byte[]) UniqueId(Byte[]) UniqueId(Byte[])

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

UniqueId(Byte[], Int32) UniqueId(Byte[], Int32) UniqueId(Byte[], Int32) UniqueId(Byte[], Int32)

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

UniqueId(Char[], Int32, Int32) UniqueId(Char[], Int32, Int32) UniqueId(Char[], Int32, Int32) UniqueId(Char[], Int32, Int32)

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

UniqueId(Guid) UniqueId(Guid) UniqueId(Guid) UniqueId(Guid)

Creates a new instance of this class using a Guid.

UniqueId(String) UniqueId(String) UniqueId(String) UniqueId(String)

Creates a new instance of this class using a string.

Properties

CharArrayLength CharArrayLength CharArrayLength CharArrayLength

Gets the length of the string representation of the UniqueId.

IsGuid IsGuid IsGuid IsGuid

Indicates whether the UniqueId is a Guid.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Tests whether an object equals this UniqueId.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Creates a hash-code representation of this UniqueId.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToCharArray(Char[], Int32) ToCharArray(Char[], Int32) ToCharArray(Char[], Int32) ToCharArray(Char[], Int32)

Puts the UniqueId value into a char array.

ToString() ToString() ToString() ToString()

Displays the UniqueId value in string format.

TryGetGuid(Byte[], Int32) TryGetGuid(Byte[], Int32) TryGetGuid(Byte[], Int32) 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 offest.

TryGetGuid(Guid) TryGetGuid(Guid) TryGetGuid(Guid) TryGetGuid(Guid)

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

Operators

Equality(UniqueId, UniqueId) Equality(UniqueId, UniqueId) Equality(UniqueId, UniqueId) Equality(UniqueId, UniqueId)

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

Inequality(UniqueId, UniqueId) Inequality(UniqueId, UniqueId) Inequality(UniqueId, UniqueId) Inequality(UniqueId, UniqueId)

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

Applies to