Share via


DependencyPropertyDescriptor.GetHashCode 方法

定義

傳回這個 DependencyPropertyDescriptor 的雜湊程式碼。

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

傳回

32 位元帶正負號的整數雜湊碼。

備註

的哈希碼 DependencyPropertyDescriptor 是以相依性屬性的標識符為基礎,以及其所設定的類型。 這個實作可確保 DependencyPropertyDescriptor 不會針對許多可能衍生類別所繼承的屬性,或針對透過屬性系統重新指派的屬性,不正確地傳回相同的哈希碼。

適用於