Udostępnij przez


Operator Equality (DacDomain.Key, DacDomain.Key)

Wykonuje wartość logiczna operacji równości, aby określić, czy dwa klucze DACDomain odwołać się do tej samej domena DAC.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Dac
Zestaw:  Microsoft.SqlServer.Management.Dac (w Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Deklaracja
Public Shared Operator = ( _
    leftOperand As DacDomain..::..Key, _
    rightOperand As DacDomain..::..Key _
) As Boolean
'Użycie
Dim leftOperand As DacDomain..::..Key
Dim rightOperand As DacDomain..::..Key
Dim returnValue As Boolean

returnValue = (leftOperand = rightOperand)
public static bool operator ==(
    DacDomain..::..Key leftOperand,
    DacDomain..::..Key rightOperand
)
public:
static bool operator ==(
    DacDomain..::..Key^ leftOperand, 
    DacDomain..::..Key^ rightOperand
)
static let inline (=)
        leftOperand:DacDomain..::..Key * 
        rightOperand:DacDomain..::..Key  : bool
JScript supports the use of overloaded operators, but not the declaration of new ones.

Parameters

Wartość zwracana

Typ: System. . :: . .Boolean
A Boolean wartość określająca, czy dwie domeny DAC są takie same. Zwraca True , jeśli oba parametry są null lub odwołać się do tej samej domena DAC. W przeciwnym razie zwraca False.