UIElement.PersistId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
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
Property Value
The unique identifier for this element.
- Attributes
Remarks
PersistId uniquely identifies each element. An element keeps the same PersistId every time the same 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.
This property has no relationship to the GetHashCode result for any given instance.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈