Transaction.Inequality(Transaction, Transaction) 操作员

定义

返回一个值,该值指示两个 Transaction 实例是否不相等。Returns a value that indicates whether two Transaction instances are not equal.

public:
 static bool operator !=(System::Transactions::Transaction ^ x, System::Transactions::Transaction ^ y);
public static bool operator != (System.Transactions.Transaction x, System.Transactions.Transaction y);
static member op_Inequality : System.Transactions.Transaction * System.Transactions.Transaction -> bool
Public Shared Operator != (x As Transaction, y As Transaction) As Boolean

参数

x
Transaction

不等运算符左侧的 Transaction 实例。The Transaction instance that is to the left of the inequality operator.

y
Transaction

不等运算符右侧的 Transaction 实例。The Transaction instance that is to the right of the inequality operator.

返回

如果 xy 不相等,则为 true;否则为 falsetrue if x and y are not equal; otherwise, false.

注解

此运算符的等效方法为Transaction.EqualsThe equivalent method for this operator is Transaction.Equals.

适用于