SqlByte.Equals 方法

定义

执行逻辑比较,以确定 SqlByte 结构的值是否等于另一个对象。Performs a logical comparison to determine whether a SqlByte structure's value is equal to another object.

重载

Equals(SqlByte, SqlByte)

对两个 SqlByte 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlByte structures to determine whether they are equal.

Equals(Object)

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

Equals(SqlByte, SqlByte)

对两个 SqlByte 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlByte structures to determine whether they are equal.

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

参数

x
SqlByte

SqlByte 结构。A SqlByte structure.

y
SqlByte

SqlByte 结构。A SqlByte structure.

返回

SqlBoolean

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

适用于

Equals(Object)

将提供的 Object 参数与 Value 对象的 SqlByte 属性进行比较。Compares the supplied Object parameter to the Value property of the SqlByte 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

要比较的 ObjectThe Object to be compared.

返回

Boolean

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

适用于