StreamingContext.Equals(Object) StreamingContext.Equals(Object) StreamingContext.Equals(Object) StreamingContext.Equals(Object) Method

定義

判斷兩個 StreamingContext 執行個體是否具有相同的值。Determines whether two StreamingContext instances contain the same values.

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 Object Object Object

要與目前執行個體比較的物件。An object to compare with the current instance.

傳回

如果指定的物件是 StreamingContext 的執行個體,而且目前執行個體的值,則為 true,否則為 falsetrue if the specified object is an instance of StreamingContext and equals the value of the current instance; otherwise, false.

備註

如果兩個程式碼群組具有相同Context的和, State它們就是相等的。Two code groups are equivalent if they have the same Context and State.

適用於