NameKey.Equality Operator

Definition

确定两个对象是否相同。Determines whether two objects are the same.

Overloads

Equality(NameKey, NameKey)

确定分别由两个指定的 NameKey 值表示的对象是否相同。Determines whether the objects represented by the two specified NameKey values are the same.

Equality(NameKey, Object)

确定由指定 NameKey 表示的对象是否与指定的 Object 相同。Determines whether the object represented by the specified NameKey is the same as the specified Object.

Equality(Object, NameKey)

确定指定的 Object 是否与由指定的 NameKey 表示的对象相同。Determines whether the the specified Object is the same as the object represented by the specified NameKey .

Equality(NameKey, 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

一个表示要比较的第一个对象的 NameKey 对象。A NameKey object that represents the first object to compare.

rightOperand
NameKey

一个表示要比较的第二个对象的 NameKey 对象。A NameKey object that represents the second object to compare.

Returns

Boolean

一个 Boolean 值,如果两个对象相同,则为 true;否则为 falseA Boolean value that is true if the two objects are the same, otherwise false.

Remarks

此运算符的等效方法是<xref:Microsoft.SqlServer.Management.Utility.NameKey.Equals%28Microsoft.SqlServer.Management.Utility.NameKey%2CMicrosoft.SqlServer.Management.Utility.NameKey%29?displayProperty=fullName>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>

Equality(NameKey, Object)

确定由指定 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

一个表示要比较的第一个对象的 NameKey 对象。A NameKey object that represents the first object to compare.

obj
Object

一个指定要比较的第二个对象的 ObjectA Object that specifies the second object to compare.

Returns

Boolean

一个 Boolean 值,如果两个对象相同,则为 true;否则为 falseA Boolean value that is true if the two objects are the same, otherwise false.

Equality(Object, NameKey)

确定指定的 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

一个指定要比较的第一个对象的 ObjectA Object that specifies the first object to compare.

rightOperand
NameKey

一个表示要比较的第二个对象的 NameKey 对象。A NameKey object that represents the second object to compare.

Returns

Boolean

一个 Boolean 值,如果两个对象相同,则为 true;否则为 falseA Boolean value that is true if the two objects are the same, otherwise false.

Remarks

此运算符的等效方法是<xref:Microsoft.SqlServer.Management.Utility.NameKey.Equals%28System.Object%2CMicrosoft.SqlServer.Management.Utility.NameKey%29?displayProperty=fullName>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