Compartilhar via


Operador ServerGroup.Key.Equality (ServerGroup.Key, ServerGroup.Key)

Determines whether the objects identified by two ServerGroup.Key objects are the same.

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

Sintaxe

'Declaração
Public Shared Operator = ( _
    leftOperand As ServerGroup.Key, _
    rightOperand As ServerGroup.Key _
) As Boolean
'Uso
Dim leftOperand As ServerGroup.Key 
Dim rightOperand As ServerGroup.Key 
Dim returnValue As Boolean 

returnValue = (leftOperand = rightOperand)
public static bool operator ==(
    ServerGroup.Key leftOperand,
    ServerGroup.Key rightOperand
)
public:
static bool operator ==(
    ServerGroup.Key^ leftOperand, 
    ServerGroup.Key^ rightOperand
)
static let inline(=)
        leftOperand:ServerGroup.Key * 
        rightOperand:ServerGroup.Key  : bool
JScript dá suporte ao uso de operadores sobrecarregados, mas não à declaração de operadores novos.

Parâmetros

Valor de retorno

Tipo: System.Boolean
A Boolean value that is true if the objects are the same. Otherwise, false.

Comentários

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

Consulte também

Referência

ServerGroup.Key Classe

Sobrecarregado Equality

Namespace Microsoft.SqlServer.Management.RegisteredServers