Прочетете на английски Редактиране

Споделяне чрез


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.

C#
[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; }

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

Продукт Версии (остаряло)
.NET Framework (3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
Windows Desktop (3.0, 3.1, 5, 6, 7, 8, 9, 10)