Share via


NameKey.Equality Operator

Definition

Determines whether two objects are the same.

Overloads

Equality(NameKey, NameKey)

Determines whether the objects represented by the two specified NameKey values are the same.

Equality(NameKey, Object)

Determines whether the object represented by the specified NameKey is the same as the specified Object.

Equality(Object, NameKey)

Determines whether the the specified Object is the same as the object represented by the specified NameKey .

Equality(NameKey, NameKey)

Determines whether the objects represented by the two specified NameKey values are the same.

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

Parameters

leftOperand
NameKey

A NameKey object that represents the first object to compare.

rightOperand
NameKey

A NameKey object that represents the second object to compare.

Returns

A Boolean value that is true if the two objects are the same, otherwise false.

Remarks

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

Applies to

Equality(NameKey, Object)

Determines whether the object represented by the specified NameKey is the same as the specified Object.

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

Parameters

leftOperand
NameKey

A NameKey object that represents the first object to compare.

obj
Object

A Object that specifies the second object to compare.

Returns

A Boolean value that is true if the two objects are the same, otherwise false.

Applies to

Equality(Object, NameKey)

Determines whether the the specified Object is the same as the object represented by the specified NameKey .

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

Parameters

obj
Object

A Object that specifies the first object to compare.

rightOperand
NameKey

A NameKey object that represents the second object to compare.

Returns

A Boolean value that is true if the two objects are the same, otherwise false.

Remarks

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

Applies to