UIElement.PersistId 属性

定义

注意

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

获取一个唯一标识此元素的值。

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

此元素的唯一标识符。

属性

注解

PersistId 唯一标识每个元素。 每次加载相同的可扩展应用程序标记语言 (XAML) 时,元素都会保持相同 PersistId , (包括二进制表示形式) 。 此标识符用于内部加载、分析和序列化要求。 它不供应用程序代码使用。

此属性与任何给定实例的结果没有关系 GetHashCode

适用于