PeerObject.Equals 方法
定义
将 PeerObject 与指定的对象进行比较。Compares the PeerObject to the specified object.
重载
| Equals(Object) |
将 PeerObject 与指定的对象进行比较。Compares the PeerObject to the specified object. |
| Equals(Object, Object) |
确定指定的 PeerObject 实例是否可视为相等的实例。Determines whether the specified PeerObject instances are considered equal. |
| Equals(PeerObject) |
将 PeerObject 与指定的 PeerObject 实例进行比较。Compares a PeerObject to the specified PeerObject instance. |
Equals(Object)
将 PeerObject 与指定的对象进行比较。Compares the PeerObject to the specified object.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
参数
- obj
- Object
要测试相等的对象。The object to test for equality.
返回
如果 obj 是 PeerObject 实例,且 PeerObject 实例具有匹配的数据,则为 true;否则为 false。true if obj is a PeerObject instance, and the PeerObject instances have matching data; otherwise, false.
例外
已释放由 obj 指定的对象。The object specified by obj has been disposed.
适用于
Equals(Object, Object)
确定指定的 PeerObject 实例是否可视为相等的实例。Determines whether the specified PeerObject instances are considered equal.
public:
static bool Equals(System::Object ^ objA, System::Object ^ objB);
public static bool Equals (object objA, object objB);
static member Equals : obj * obj -> bool
Public Shared Function Equals (objA As Object, objB As Object) As Boolean
参数
- objA
- Object
要比较的第一个 PeerObject。The first PeerObject to compare.
- objB
- Object
要比较的第二个 PeerObject。The second PeerObject to compare.
返回
如果提供的 PeerObject 实例具有匹配的数据,则为 true;否则为 false。true if the PeerObject instances provided have matching data; otherwise, false.
适用于
Equals(PeerObject)
将 PeerObject 与指定的 PeerObject 实例进行比较。Compares a PeerObject to the specified PeerObject instance.
public:
virtual bool Equals(System::Net::PeerToPeer::Collaboration::PeerObject ^ other);
public bool Equals (System.Net.PeerToPeer.Collaboration.PeerObject other);
override this.Equals : System.Net.PeerToPeer.Collaboration.PeerObject -> bool
Public Function Equals (other As PeerObject) As Boolean
参数
- other
- PeerObject
要进行相等性测试的 PeerObject 实例。The PeerObject instance to test for equality.
返回
如果提供的 PeerObject 实例具有匹配的数据,则为 true;否则为 false。true if the PeerObject instance provided has matching data; otherwise, false.
实现
例外
已释放由 other 指定的 PeerObject 实例。The PeerObject instance specified by other has been disposed.