This documentation is archived and is not being maintained.
AppDomain Methods
Visual Studio 2008
The AppDomain type exposes the following members.
| Name | Description | |
|---|---|---|
|
AppendPrivatePath | Obsolete. Appends the specified directory name to the private path list. |
|
ApplyPolicy | Returns the assembly display name after policy has been applied. |
|
ClearPrivatePath | Obsolete. Resets the path that specifies the location of private assemblies to the empty string (""). |
|
ClearShadowCopyPath | Obsolete. Resets the list of directories containing shadow copied assemblies to the empty string (""). |
|
CreateComInstanceFrom | Overloaded. Creates a new instance of a specified COM type. |
|
CreateDomain | Overloaded. Creates a new application domain. |
|
CreateInstance | Overloaded. Creates a new instance of a specified type defined in a specified assembly. |
|
CreateInstanceAndUnwrap | Overloaded. Creates a new instance of a specified type. |
|
CreateInstanceFrom | Overloaded. Creates a new instance of a specified type defined in the specified assembly file. |
|
CreateInstanceFromAndUnwrap | Overloaded. Creates a new instance of a specified type defined in the specified assembly file. |
|
CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.) |
|
DefineDynamicAssembly | Overloaded. Defines a dynamic assembly in the current application domain. |
|
DoCallBack | Executes the code in another application domain that is identified by the specified delegate. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
ExecuteAssembly | Overloaded. Executes the assembly contained in the specified file. |
|
ExecuteAssemblyByName | Overloaded. Executes an assembly. |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetAssemblies | Gets the assemblies that have been loaded into the execution context of this application domain. |
|
GetCurrentThreadId | Obsolete. Gets the current thread identifier. |
|
GetData | Gets the value stored in the current application domain for the specified name. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.) |
|
GetType |
Gets the type of the current instance.
In .NET Compact Framework 3.5, this member is inherited from Object::GetType(). In XNA Framework 3.0, this member is inherited from Object::GetType(). |
|
InitializeLifetimeService | Gives the AppDomain an infinite lifetime by preventing a lease from being created. (Overrides MarshalByRefObject::InitializeLifetimeService().) |
|
IsDefaultAppDomain | Returns a value that indicates whether the application domain is the default application domain for the process. |
|
IsFinalizingForUnload | Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime. |
|
Load | Overloaded. Loads an Assembly into this application domain and the caller’s application domain. |
|
MemberwiseClone | Overloaded. |
|
ReflectionOnlyGetAssemblies | Returns the assemblies that have been loaded into the reflection-only context of the application domain. |
|
SetAppDomainPolicy | Establishes the security policy level for this application domain. |
|
SetCachePath | Obsolete. Establishes the specified directory path as the location where assemblies are shadow copied. |
|
SetData | Overloaded. Assigns a value to an application domain property. |
|
SetDynamicBase | Obsolete. Establishes the specified directory path as the base directory for subdirectories where dynamically generated files are stored and accessed. |
|
SetPrincipalPolicy | Specifies how principal and identity objects should be attached to a thread if the thread attempts to bind to a principal while executing in this application domain. |
|
SetShadowCopyFiles | Obsolete. Turns on shadow copying. |
|
SetShadowCopyPath | Obsolete. Establishes the specified directory path as the location of assemblies to be shadow copied. |
|
SetThreadPrincipal | Sets the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain. |
|
ToString | Obtains a string representation that includes the friendly name of the application domain and any context policies. (Overrides Object::ToString().) |
|
Unload | Unloads the specified application domain. |
| Name | Description | |
|---|---|---|
|
_AppDomain::GetIDsOfNames | Maps a set of names to a corresponding set of dispatch identifiers. |
|
_AppDomain::GetTypeInfo | Retrieves the type information for an object, which can then be used to get the type information for an interface. |
|
_AppDomain::GetTypeInfoCount | Retrieves the number of type information interfaces that an object provides (either 0 or 1). |
|
_AppDomain::Invoke | Provides access to properties and methods exposed by an object. |
Show: