DependencyObject.GetHashCode DependencyObject.GetHashCode DependencyObject.GetHashCode DependencyObject.GetHashCode Method


取得這個 DependencyObject 的雜湊程式碼。Gets a hash code for this DependencyObject.

 override int GetHashCode();
public override sealed int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides NotOverridable Function GetHashCode () As Integer


帶正負號的 32 位元整數雜湊程式碼。A signed 32-bit integer hash code.


DependencyObject 會覆寫並再將兩個密封Object方法:Equals(Object)GetHashCode() DependencyObject overrides and then seals two Object methods: Equals(Object) and GetHashCode(). 覆寫呼叫Object實作,導致物件是否相等的行為。The overrides call the Object implementations, resulting in an object equality behavior. 這些精心覆寫目的是要防止衍生的類別定義的實值相等DependencyObjectThe purpose of these deliberate overrides is to prevent derived classes from trying to define a value equality for a DependencyObject. 值的等式DependencyObject因為無比的屬性值變更的功能絕對不會精確DependencyObject和其相依性屬性。Value equalities for DependencyObject will never be accurate because of the innate property value-changing capabilities of a DependencyObject and its dependency properties. 這包括基本WPFWPF功能,例如資料繫結和WPFWPF屬性系統。This includes fundamental WPFWPF features such as data binding and the WPFWPF property system.