共用方式為


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

Performs a Boolean equality operation to determine whether two policy category objects reference the same policy category.

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

語法

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

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

參數

  • obj
    型別:System.Object
    A Object object representing one of the policy category objects to compare. If the object does not reference a PolicyCategory.Key, the method returns False.

傳回值

型別:System.Boolean
A Boolean value specifying whether the two policy category objects are the same. Returns True if both parameters are null or reference the same policy category. Otherwise, returns False.

請參閱

參考

PolicyCategory.Key 類別

Equality 多載

Microsoft.SqlServer.Management.Dmf 命名空間