共用方式為


Utility.Key.Equality 運算子 (Object, Utility.Key)

Determines whether the specified object and the right-hand side of the key are equal.

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
Public Shared Operator = ( _
    obj As Object, _
    rightOperand As Utility.Key _
) As Boolean
'用途
Dim obj As Object 
Dim rightOperand As Utility.Key 
Dim returnValue As Boolean 

returnValue = (obj = rightOperand)
public static bool operator ==(
    Object obj,
    Utility.Key rightOperand
)
public:
static bool operator ==(
    Object^ obj, 
    Utility.Key^ rightOperand
)
static let inline(=)
        obj:Object * 
        rightOperand:Utility.Key  : bool
JScript 支援多載運算子的使用,但不支援新運算子的宣告。

參數

傳回值

型別:System.Boolean
A Boolean value that indicates whether the two values are equal. Returns true if both parameters are nullnull 參考 (在 Visual Basic 中為 Nothing), or if both parameters are not nullnull 參考 (在 Visual Basic 中為 Nothing) and are equal. Otherwise, false.

請參閱

參考

Utility.Key 類別

Equality 多載

Microsoft.SqlServer.Management.Utility 命名空間