UIElement.PersistId UIElement.PersistId UIElement.PersistId UIElement.PersistId Property

定義

警告

此 API 現已淘汰。

取得值,這個值可唯一識別此項目。Gets a value that uniquely identifies this element.

public:
 property int PersistId { int get(); };
[System.Obsolete("PersistId is an obsolete property and may be removed in a future release.  The value of this property is not defined.")]
public int PersistId { get; }
member this.PersistId : int
Public ReadOnly Property PersistId As Integer

屬性值

這個項目的唯一識別項。The unique identifier for this element.

備註

PersistId 可唯一識別每個項目。PersistId uniquely identifies each element. 項目不會改變PersistId每次相同Extensible Application Markup Language (XAML)Extensible Application Markup Language (XAML)載入 (包括二進位表示法)。An element keeps the same PersistId every time the same Extensible Application Markup Language (XAML)Extensible Application Markup Language (XAML) is loaded (including binary representations). 這個識別碼用於內部的載入、 剖析和序列化需求。This identifier is used for internal loading, parsing and serialization requirements. 它不是可供您的應用程式程式碼。It is not intended to be used by your application code.

這個屬性沒有任何關聯性GetHashCode任何給定的執行個體的結果。This property has no relationship to the GetHashCode result for any given instance.

適用於