Each instance of an application domain consists of both properties and AppDomainSetup information. You can retrieve setup information from an application domain using the wrapper class TClrAppDomain orAppDomain interface. This class or interface provides several members that retrieve configuration information about an application domain. You can also query the AppDomainSetup object for the application domain to obtain setup information that was passed to the domain when it was created.
The following example creates a new application domain and then prints several member values to the console.
The following example sets, and then retrieves, setup information for an application domain. Note that AppDomain.SetupInformation.ApplicationBase gets the configuration information.