Transaction.Equality(Transaction, Transaction) 操作员

定义

测试两个指定的 Transaction 实例是否相等。Tests whether two specified Transaction instances are equivalent.

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 ( = ) : 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 equality operator.

y
Transaction

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

返回

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

注解

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

适用于