Compartilhar via


Classe ServerGroup.Key

Represents the property that is associated with the object that is used to uniquely identify the object.

Hierarquia de herança

System. . :: . .Object
  Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcKey
    Microsoft.SqlServer.Management.RegisteredServers..::..ServerGroup..::..Key

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

Sintaxe

'Declaração
Public NotInheritable Class Key _
    Inherits SfcKey
'Uso
Dim instance As ServerGroup.Key
public sealed class Key : SfcKey
public ref class Key sealed : public SfcKey
[<SealedAttribute>]
type Key =  
    class
        inherit SfcKey
    end
public final class Key extends SfcKey

O tipo ServerGroup..::..Key expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ServerGroup. . :: . .Key() () () () Initializes a new instance of the ServerGroup..::..Key class.
Método público ServerGroup. . :: . .Key(String) Initializes a new instance of the ServerGroup..::..Key class that has the specified name.
Método público ServerGroup. . :: . .Key(ServerGroup. . :: . .Key) Initializes a new instance of the ServerGroup..::..Key class that is based on the referenced key object.

Início

Propriedades

  Nome Descrição
Propriedade pública Name Gets a String value that specifies the name of the server group key.

Início

Métodos

  Nome Descrição
Método público Equals(Object) Determines whether the specified Object is equal to the server group represented by the ServerGroup..::..Key object. (Substitui SfcKey. . :: . .Equals(Object).)
Método público Equals(SfcKey) Determines whether the object identified by the specified Key is equal to the server group represented by the ServerGroup..::..Key object. (Substitui SfcKey. . :: . .Equals(SfcKey).)
Método públicoMembro estático Equals(Object, Object) Determines whether the two specified objects are the same.
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode Gets the hash code for the server group. (Substitui SfcKey. . :: . .GetHashCode() () () ().)
Método público GetType (Herdado de Object.)
Método público GetUrnFragment Gets the partial unique resource name (URN) path string that represents the server group. (Substitui SfcKey. . :: . .GetUrnFragment() () () ().)
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, ServerGroup. . :: . .Key) Determines whether the object identified by a Object is the same as the object identified by a ServerGroup..::..Key.
Operador públicoMembro estático Equality(ServerGroup. . :: . .Key, ServerGroup. . :: . .Key) Determines whether the objects identified by two ServerGroup..::..Key objects are the same.
Operador públicoMembro estático Equality(ServerGroup. . :: . .Key, Object) Determines whether the object identified by a Object is the same as the object identified by a ServerGroup..::..Key.
Operador públicoMembro estático Inequality(Object, ServerGroup. . :: . .Key) Determines whether the object identified by a Object is different than the object identified by a RegisteredServersStore..::..Key.
Operador públicoMembro estático Inequality(ServerGroup. . :: . .Key, ServerGroup. . :: . .Key) Determines whether the objects identified by two ServerGroup..::..Key objects are different.
Operador públicoMembro estático Inequality(ServerGroup. . :: . .Key, Object) Determines whether the object identified by a Object is different than the object identified by a RegisteredServersStore..::..Key.

Início

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

Thread Safety

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.

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.