Compartilhar via


Classe NameKey

Identifies Microsoft.SqlServer.Utility objects that use a name property as an Sfc key.

Hierarquia de herança

System.Object
  Microsoft.SqlServer.Management.Sdk.Sfc.SfcKey
    Microsoft.SqlServer.Management.Utility.NameKey
      Microsoft.SqlServer.Management.Utility.ManagedInstance.Key

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (em Microsoft.SqlServer.Management.Utility.dll)

Sintaxe

'Declaração
Public MustInherit Class NameKey _
    Inherits SfcKey
'Uso
Dim instance As NameKey
public abstract class NameKey : SfcKey
public ref class NameKey abstract : public SfcKey
[<AbstractClassAttribute>]
type NameKey =  
    class 
        inherit SfcKey 
    end
public abstract class NameKey extends SfcKey

O tipo NameKey expõe os membros a seguir.

Construtores

  Nome Descrição
Método público NameKey Initializes a new instance of the NameKey class with the specified key name.

Início

Propriedades

  Nome Descrição
Propriedade pública InstanceType Gets the type of the instance class associated with this key class. (Herdado de SfcKey.)
Propriedade pública Name Gets the name of the object represented by the NameKey.

Início

Métodos

  Nome Descrição
Método público Equals(Object) Determines whether the object represented by the NameKey is equal to the specified Object. (Substitui SfcKey.Equals(Object).)
Método público Equals(SfcKey) Determines whether the object represented by the current NameKey is equal to the object represented by the specified key. (Substitui SfcKey.Equals(SfcKey).)
Método públicoMembro estático Equals(Object, Object) Determines whether the two specified objects are equal.
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode Returns the hash code for this NameKey. (Substitui SfcKey.GetHashCode().)
Método público GetType (Herdado de Object.)
Método público GetUrnFragment Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. Gets the unique resource name (URN) path partial string that represents the object identified by the current [T:Microsoft.SqlServer.Management. Sdk.Sfc.SfcKey].. (Herdado de SfcKey.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. Returns a String value that is a sortable representation of the object that can be used in external comparers. (Herdado de SfcKey.)

Início

Operadores

  Nome Descrição
Operador públicoMembro estático Equality(Object, NameKey) Determines whether the the specified Object is the same as the object represented by the specified NameKey .
Operador públicoMembro estático Equality(NameKey, NameKey) Determines whether the objects represented by the two specified NameKey values are the same.
Operador públicoMembro estático Equality(NameKey, Object) Determines whether the object represented by the specified NameKey is the same as the specified Object.
Operador públicoMembro estático Inequality(Object, NameKey) Determines whether the the specified Object is different than the object represented by the specified NameKey .
Operador públicoMembro estático Inequality(NameKey, NameKey) Determines whether the objects represented by the two specified NameKey values are different.
Operador públicoMembro estático Inequality(NameKey, Object) Determines whether the object represented by the specified NameKey is different than the specified Object.

Início

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Management.Utility