SqlBinary.Equals 方法

定义

比较两个 SqlBinary 结构以确定它们是否相等。Compares two SqlBinary structures to determine whether they are equal.

重载

Equals(Object)

将提供的对象参数与 Value 对象的 SqlBinary 属性进行比较。Compares the supplied object parameter to the Value property of the SqlBinary object.

Equals(SqlBinary, SqlBinary)

比较两个 SqlBinary 结构以确定它们是否相等。Compares two SqlBinary structures to determine whether they are equal.

Equals(Object)

将提供的对象参数与 Value 对象的 SqlBinary 属性进行比较。Compares the supplied object parameter to the Value property of the SqlBinary object.

public:
 override bool Equals(System::Object ^ value);
public override bool Equals (object value);
public override bool Equals (object? value);
override this.Equals : obj -> bool
Public Overrides Function Equals (value As Object) As Boolean

参数

value
Object

要比较的对象。The object to be compared.

返回

Boolean

如果对象是 SqlBinary 的实例并且两者相等,则为 true;否则为 falsetrue if object is an instance of SqlBinary and the two are equal; otherwise false.

适用于

Equals(SqlBinary, SqlBinary)

比较两个 SqlBinary 结构以确定它们是否相等。Compares two SqlBinary structures to determine whether they are equal.

public:
 static System::Data::SqlTypes::SqlBoolean Equals(System::Data::SqlTypes::SqlBinary x, System::Data::SqlTypes::SqlBinary y);
public static System.Data.SqlTypes.SqlBoolean Equals (System.Data.SqlTypes.SqlBinary x, System.Data.SqlTypes.SqlBinary y);
static member Equals : System.Data.SqlTypes.SqlBinary * System.Data.SqlTypes.SqlBinary -> System.Data.SqlTypes.SqlBoolean
Public Shared Function Equals (x As SqlBinary, y As SqlBinary) As SqlBoolean

参数

x
SqlBinary

SqlBinary 结构。A SqlBinary structure.

y
SqlBinary

SqlBinary 结构。A SqlBinary structure.

返回

SqlBoolean

如果两个值相等,则为 truetrue if the two values are equal. 否则为 falseOtherwise, false. 如果任一实例为 null,则 SqlBinary 将为 null。If either instance is null, then the SqlBinary will be null.

适用于