Compartilhar via


Classe ManagedInstance.Key

The ManagedInstance.Key class represents the key that identifies the ManagedInstance class.

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 NotInheritable Class Key _
    Inherits NameKey
'Uso
Dim instance As ManagedInstance.Key
public sealed class Key : NameKey
public ref class Key sealed : public NameKey
[<SealedAttribute>]
type Key =  
    class 
        inherit NameKey 
    end
public final class Key extends NameKey

O tipo ManagedInstance.Key expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ManagedInstance.Key Initializes a new instance of the ManagedInstance.Key class that has the specified 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. (Herdado de 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. (Herdado de NameKey.)
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. (Herdado de NameKey.)
Método público GetHashCode Returns the hash code for this NameKey. (Herdado de NameKey.)
Método público GetType (Herdado de Object.)
Método público GetUrnFragment Gets the URN path partial string that represents the managed instance. (Substitui SfcKey.GetUrnFragment().)
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

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