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 可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML)元素 (包括二进制表示形式) 时, 元素保持不变。An element keeps the same PersistId every time the same 可扩展应用程序标记语言 (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.

适用于