Share via


CollectionItem.Key.Equality Operator (Object, CollectionItem.Key)

Does a boolean equality comparison between the object sent as a parameter and the right hand side of the key.

Namespace:  Microsoft.SqlServer.Management.Collector
Assembly:  Microsoft.SqlServer.Management.Collector (in Microsoft.SqlServer.Management.Collector.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    obj As Object, _
    rhs As CollectionItem..::..Key _
) As Boolean
'Usage
Dim obj As Object
Dim rhs As CollectionItem..::..Key
Dim returnValue As Boolean

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

Parameters

Return Value

Type: System.Boolean

A Boolean value that returns TRUE when:

  • Both sides are NULL

  • Both sides are not NULL AND rhs is a key AND the keys are equal

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.