AppContext Class

Definition

Provides members for setting and retrieving data about an application's context.

public ref class AppContext abstract sealed
public static class AppContext
type AppContext = class
Public Class AppContext
Inheritance
AppContext

Remarks

For more information about this API, see Supplemental API remarks for AppContext.

Properties

BaseDirectory

Gets the file path of the base directory that the assembly resolver uses to probe for assemblies.

TargetFrameworkName

Gets the name of the framework version targeted by the current application.

Methods

GetData(String)

Returns the value of the named data element assigned to the current application domain.

SetData(String, Object)

Sets the value of the named data element assigned to the current application domain.

SetSwitch(String, Boolean)

Sets the value of a switch.

TryGetSwitch(String, Boolean)

Tries to get the value of a switch.

Applies to

See also