Application.Properties Property

Definition

Caution

Properties API is obsolete, use Microsoft.Maui.Storage.Preferences instead.

Gets a dictionary of persistent properties for this Application object.

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ Properties { System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ get(); };
public System.Collections.Generic.IDictionary<string,object> Properties { get; }
[System.Obsolete("Properties API is obsolete, use Microsoft.Maui.Storage.Preferences instead.", true)]
public System.Collections.Generic.IDictionary<string,object> Properties { get; }
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
[<System.Obsolete("Properties API is obsolete, use Microsoft.Maui.Storage.Preferences instead.", true)>]
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
Public ReadOnly Property Properties As IDictionary(Of String, Object)

Property Value

A dictionary of persistent properties for the application.

Attributes

Remarks

Developers can use this property to store persistent application state across all application code. This values in the dictionary are preserved on the device when the application is paused or shut down. Note: values saved in the properties dictionary must be primitive types, such as integers or strings. Attempting to save reference types, or collections in particular, can fail silently.

Applies to