Utility.Key.Equality Operator

Definition

Determines whether the specified objects are equal.

Overloads

Equality(Utility+Key, Utility+Key)

Determines whether the specified left and right-hand sides of the key are equal.

Equality(Utility+Key, Object)

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

Equality(Object, Utility+Key)

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

Equality(Utility+Key, Utility+Key)

Determines whether the specified left and right-hand sides of the key are equal.

public:
 static bool operator ==(Microsoft::SqlServer::Management::Utility::Utility::Key ^ leftOperand, Microsoft::SqlServer::Management::Utility::Utility::Key ^ rightOperand);
public static bool operator == (Microsoft.SqlServer.Management.Utility.Utility.Key leftOperand, Microsoft.SqlServer.Management.Utility.Utility.Key rightOperand);
static member ( = ) : Microsoft.SqlServer.Management.Utility.Utility.Key * Microsoft.SqlServer.Management.Utility.Utility.Key -> bool
Public Shared Operator == (leftOperand As Utility.Key, rightOperand As Utility.Key) As Boolean

Parameters

leftOperand
Utility.Key

A Utility.Key object containing the left-hand side of the key to compare.

rightOperand
Utility.Key

A Utility.Key object containing the right-hand side of the key to compare.

Returns

A Boolean value that indicates whether the two values are equal. Returns true if both parameters are null, or if both parameters are not null and are equal. Otherwise, false.

Remarks

The equivalent method for this operator is <xref:Microsoft.SqlServer.Management.Utility.Utility.Key.Equals%28Microsoft.SqlServer.Management.Utility.Utility.Key%2CMicrosoft.SqlServer.Management.Utility.Utility.Key%29?displayProperty=fullName>

Applies to

Equality(Utility+Key, Object)

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

public:
 static bool operator ==(Microsoft::SqlServer::Management::Utility::Utility::Key ^ leftOperand, System::Object ^ obj);
public static bool operator == (Microsoft.SqlServer.Management.Utility.Utility.Key leftOperand, object obj);
static member ( = ) : Microsoft.SqlServer.Management.Utility.Utility.Key * obj -> bool
Public Shared Operator == (leftOperand As Utility.Key, obj As Object) As Boolean

Parameters

leftOperand
Utility.Key

A Utility.Key object containing the left-hand side of the key to compare.

obj
Object

A Object containing the object to compare.

Returns

A Boolean value that indicates whether the two values are equal. Returns true if both parameters are null, or if both parameters are not null and are equal. Otherwise, false.

Remarks

The equivalent method for this operator is <xref:Microsoft.SqlServer.Management.Utility.Utility.Key.Equals%28Microsoft.SqlServer.Management.Utility.Utility.Key%2CSystem.Object%29?displayProperty=fullName>

Applies to

Equality(Object, Utility+Key)

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

public:
 static bool operator ==(System::Object ^ obj, Microsoft::SqlServer::Management::Utility::Utility::Key ^ rightOperand);
public static bool operator == (object obj, Microsoft.SqlServer.Management.Utility.Utility.Key rightOperand);
static member ( = ) : obj * Microsoft.SqlServer.Management.Utility.Utility.Key -> bool
Public Shared Operator == (obj As Object, rightOperand As Utility.Key) As Boolean

Parameters

obj
Object

A Object containing the object to compare.

rightOperand
Utility.Key

A Utility.Key object containing the right-hand side of the key to compare.

Returns

A Boolean value that indicates whether the two values are equal. Returns true if both parameters are null, or if both parameters are not null and are equal. Otherwise, false.

Remarks

The equivalent method for this operator is <xref:Microsoft.SqlServer.Management.Utility.Utility.Key.Equals%28System.Object%2CMicrosoft.SqlServer.Management.Utility.Utility.Key%29?displayProperty=fullName>

Applies to