NamedKey<T>.Equality 運算子
Indicates whether the two keys are equal.
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Shared Operator = ( _
leftOperand As NamedKey(Of T), _
rightOperand As NamedKey(Of T) _
) As Boolean
'用途
Dim leftOperand As NamedKey(Of T)
Dim rightOperand As NamedKey(Of T)
Dim returnValue As Boolean
returnValue = (leftOperand = rightOperand)
public static bool operator ==(
NamedKey<T> leftOperand,
NamedKey<T> rightOperand
)
public:
static bool operator ==(
NamedKey<T>^ leftOperand,
NamedKey<T>^ rightOperand
)
static let inline(=)
leftOperand:NamedKey<'T> *
rightOperand:NamedKey<'T> : bool
JScript 支援多載運算子的使用,但不支援新運算子的宣告。
參數
- leftOperand
型別:Microsoft.SqlServer.Management.Sdk.Sfc.NamedKey<T>
The first key to compare.
- rightOperand
型別:Microsoft.SqlServer.Management.Sdk.Sfc.NamedKey<T>
The second key to compare.
傳回值
型別:System.Boolean
True if both keys are equal or are both null; otherwise, false.