UniqueId Classe

Definição

Um identificador exclusivo otimizado para Guids.A unique identifier optimized for Guids.

public ref class UniqueId
public class UniqueId
type UniqueId = class
Public Class UniqueId
Herança
UniqueId

Comentários

Essa classe pode conter qualquer valor de cadeia de caracteres, mas tem otimizações para lidar com Guid s.This class can hold any string value, but has optimizations for dealing with Guids.

Construtores

UniqueId()

Cria uma nova instância dessa classe com um Guid novo e exclusivo.Creates a new instance of this class with a new, unique Guid.

UniqueId(Byte[])

Cria uma nova instância dessa classe usando uma matriz de bytes que representa um Guid.Creates a new instance of this class using a byte array that represents a Guid.

UniqueId(Byte[], Int32)

Cria uma nova instância dessa classe começando em um deslocamento dentro de uma matriz byte que representa um Guid.Creates a new instance of this class starting from an offset within a byte array that represents a Guid.

UniqueId(Char[], Int32, Int32)

Cria uma nova instância dessa classe começando em um deslocamento dentro de uma char usando um número especificado de entradas.Creates a new instance of this class starting from an offset within a char using a specified number of entries.

UniqueId(Guid)

Cria uma nova instância dessa classe usando um Guid.Creates a new instance of this class using a Guid.

UniqueId(String)

Cria uma nova instância dessa classe usando uma cadeia de caracteres.Creates a new instance of this class using a string.

Propriedades

CharArrayLength

Obtém o comprimento da representação de cadeia de caracteres de UniqueId.Gets the length of the string representation of the UniqueId.

IsGuid

Indica se o UniqueId é um Guid.Indicates whether the UniqueId is a Guid.

Métodos

Equals(Object)

Testa se um objeto é igual a esse UniqueId.Tests whether an object equals this UniqueId.

GetHashCode()

Cria uma representação de código hash desse UniqueId.Creates a hash-code representation of this UniqueId.

GetType()

Obtém o Type da instância atual.Gets the Type of the current instance.

(Herdado de Object)
MemberwiseClone()

Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object.

(Herdado de Object)
ToCharArray(Char[], Int32)

Coloca o valor UniqueId em uma matriz char.Puts the UniqueId value into a char array.

ToString()

Exibe o valor UniqueId no formato de cadeia de caracteres.Displays the UniqueId value in string format.

TryGetGuid(Byte[], Int32)

Tenta obter o valor de UniqueId como um Guid e armazená-lo na matriz de bytes determinada no deslocamento especificado.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)

Tenta obter o valor de UniqueId como um Guid.Tries to get the value of the UniqueId as a Guid.

Operadores

Equality(UniqueId, UniqueId)

Substitui o operador de igualdade para testar a igualdade de dois UniqueIds.Overrides the equality operator to test for equality of two UniqueIds.

Inequality(UniqueId, UniqueId)

Substitui o operador de igualdade para testar a desigualdade de dois UniqueIds.Overrides the equality operator to test for inequality of two UniqueIds.

Aplica-se a