Application.Properties 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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for