Share via


SchemaNamedKey<T>.Equality Operator

Compares two keys for value equality.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Shared Operator = ( _
    leftOperand As SchemaNamedKey(Of T), _
    rightOperand As SchemaNamedKey(Of T) _
) As Boolean
'Usage
Dim leftOperand As SchemaNamedKey(Of T)
Dim rightOperand As SchemaNamedKey(Of T)
Dim returnValue As Boolean 

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

Parameters

Return Value

Type: System.Boolean
true if both keys are equal or both keys are nulla null reference (Nothing in Visual Basic); otherwise, false.

See Also

Reference

SchemaNamedKey<T> Class

Microsoft.SqlServer.Management.Sdk.Sfc Namespace