Uređivanje

Dijeli putem


UIElement.PersistId Property

Definition

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