Application.Current Property

Definition

Gets the Application object for the current AppDomain.

C#
public static System.Windows.Application Current { get; }

Property Value

The Application object for the current AppDomain.

Remarks

Application is a per-AppDomain singleton type that implements the static Current property to provide shared access to the Application instance for the current AppDomain. This design guarantees that state managed by Application, including shared resources and state, is available from a single, shared location.

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

Applies to

Produkt Verzie
.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