SqlBoolean.Equals 方法

定义

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

重载

Equals(Object)

将提供的对象参数与 SqlBoolean 比较。Compares the supplied object parameter to the SqlBoolean.

Equals(SqlBoolean, SqlBoolean)

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

Equals(Object)

将提供的对象参数与 SqlBoolean 比较。Compares the supplied object parameter to the SqlBoolean.

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

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

适用于

Equals(SqlBoolean, SqlBoolean)

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

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

参数

x
SqlBoolean

SqlBoolean 结构。A SqlBoolean structure.

y
SqlBoolean

SqlBoolean 结构。A SqlBoolean structure.

返回

SqlBoolean

如果两个实例相等,则返回 True;如果两个实例不相等,则返回 FalseTrue if the two instances are equal or False if the two instances are not equal. 如果 SqlBoolean 的任一实例为空,则 ValueSqlBoolean 将为 NullIf either instance of SqlBoolean is null, the Value of the SqlBoolean will be Null.

适用于