Application.Properties Property


Gets a collection of application-scope properties.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

public IDictionary Properties { get; }

Property Value

Type: System.Collections.IDictionary

An IDictionary that contains the application-scope properties.

Application exposes a dictionary via Properties which you can use to store application-scope properties. This allows you to share state amongst all code in an AppDomain in a thread-safe fashion, without the need to write your own state code.

Properties stored in Properties must be converted to the appropriate type returned.

TheProperties property is thread safe and is available from any thread.

The following example shows how create and use an application-scope property using Properties.

.NET Framework
Available since 3.0
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft