UIElement.PersistId 属性

定义

注意

PersistId is an obsolete property and may be removed in a future release. The value of this property is not defined.

获取一个唯一标识此元素的值。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; }
[<System.Obsolete("PersistId is an obsolete property and may be removed in a future release.  The value of this property is not defined.")>]
member this.PersistId : int
Public ReadOnly Property PersistId As Integer

属性值

Int32

此元素的唯一标识符。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.

适用于