This documentation is archived and is not being maintained.
AppDomain Methods
Visual Studio 2010
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(String, String) | Creates a new instance of a specified COM type. Parameters specify the name of a file that contains an assembly containing the type and the name of the type. |
|
CreateComInstanceFrom(String, String, array<Byte>, AssemblyHashAlgorithm) | Creates a new instance of a specified COM type. Parameters specify the name of a file that contains an assembly containing the type and the name of the type. |
|
CreateDomain(String) | Creates a new application domain with the specified name. |
|
CreateDomain(String, Evidence) | Creates a new application domain with the given name using the supplied evidence. |
|
CreateDomain(String, Evidence, AppDomainSetup) | Creates a new application domain using the specified name, evidence, and application domain setup information. |
|
CreateDomain(String, Evidence, AppDomainSetup, PermissionSet, array<StrongName>) | Creates a new application domain using the specified name, evidence, application domain setup information, default permission set, and array of fully trusted assemblies. |
|
CreateDomain(String, Evidence, String, String, Boolean) | Creates a new application domain with the given name, using evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded into the application domain. |
|
CreateDomain(String, Evidence, String, String, Boolean, AppDomainInitializer, array<String>) | Creates a new application domain with the given name, using evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded into the application domain. Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method. |
|
CreateInstance(String, String) | Creates a new instance of the specified type defined in the specified assembly. |
|
CreateInstance(String, String, array<Object>) | Creates a new instance of the specified type defined in the specified assembly. A parameter specifies an array of activation attributes. |
|
CreateInstance(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>) | Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, and optional activation attributes. |
|
CreateInstance(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>, Evidence) | Obsolete. Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, activation attributes, and authorization to create the type. |
|
CreateInstanceAndUnwrap(String, String) | Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, and the name of the type. |
|
CreateInstanceAndUnwrap(String, String, array<Object>) | Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, the name of the type, and an array of activation attributes. |
|
CreateInstanceAndUnwrap(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>) | Creates a new instance of the specified type defined in the specified assembly, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes. |
|
CreateInstanceAndUnwrap(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>, Evidence) | Obsolete. Creates a new instance of the specified type. Parameters specify the name of the type, and how it is found and created. |
|
CreateInstanceFrom(String, String) | Creates a new instance of the specified type defined in the specified assembly file. |
|
CreateInstanceFrom(String, String, array<Object>) | Creates a new instance of the specified type defined in the specified assembly file. |
|
CreateInstanceFrom(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>) | Creates a new instance of the specified type defined in the specified assembly file. |
|
CreateInstanceFrom(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>, Evidence) | Obsolete. Creates a new instance of the specified type defined in the specified assembly file. |
|
CreateInstanceFromAndUnwrap(String, String) | Creates a new instance of the specified type defined in the specified assembly file. |
|
CreateInstanceFromAndUnwrap(String, String, array<Object>) | Creates a new instance of the specified type defined in the specified assembly file. |
|
CreateInstanceFromAndUnwrap(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>) | Creates a new instance of the specified type defined in the specified assembly file, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes. |
|
CreateInstanceFromAndUnwrap(String, String, Boolean, BindingFlags, Binder, array<Object>, CultureInfo, array<Object>, Evidence) | Obsolete. Creates a new instance of the 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(AssemblyName, AssemblyBuilderAccess) | Defines a dynamic assembly with the specified name and access mode. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>) | Defines a dynamic assembly with the specified name, access mode, and custom attributes. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) | Obsolete. Defines a dynamic assembly using the specified name, access mode, and evidence. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) | Defines a dynamic assembly using the specified name, access mode, and storage directory. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>, SecurityContextSource) | Defines a dynamic assembly with the specified name, access mode, and custom attributes, and using the specified source for its security context. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) | Obsolete. Defines a dynamic assembly using the specified name, access mode, storage directory, and evidence. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) | Obsolete. Defines a dynamic assembly using the specified name, access mode, and permission requests. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Boolean, IEnumerable<CustomAttributeBuilder>) | Defines a dynamic assembly using the specified name, access mode, storage directory, and synchronization option. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) | Obsolete. Defines a dynamic assembly using the specified name, access mode, evidence, and permission requests. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) | Obsolete. Defines a dynamic assembly using the specified name, access mode, storage directory, and permission requests. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) | Obsolete. Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, and permission requests. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) | Obsolete. Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, permission requests, and synchronization option. |
|
DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean, IEnumerable<CustomAttributeBuilder>) | Obsolete. Defines a dynamic assembly with the specified name, access mode, storage directory, evidence, permission requests, synchronization option, and custom attributes. |
|
DoCallBack | Executes the code in another application domain that is identified by the specified delegate. |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
ExecuteAssembly(String) | Executes the assembly contained in the specified file. |
|
ExecuteAssembly(String, Evidence) | Obsolete. Executes the assembly contained in the specified file, using the specified evidence. |
|
ExecuteAssembly(String, array<String>) | Executes the assembly contained in the specified file, using the specified arguments. |
|
ExecuteAssembly(String, Evidence, array<String>) | Obsolete. Executes the assembly contained in the specified file, using the specified evidence and arguments. |
|
ExecuteAssembly(String, array<String>, array<Byte>, AssemblyHashAlgorithm) | Executes the assembly contained in the specified file, using the specified arguments, hash value, and hash algorithm. |
|
ExecuteAssembly(String, Evidence, array<String>, array<Byte>, AssemblyHashAlgorithm) | Obsolete. Executes the assembly contained in the specified file, using the specified evidence, arguments, hash value, and hash algorithm. |
|
ExecuteAssemblyByName(String) | Executes an assembly given its display name. |
|
ExecuteAssemblyByName(AssemblyName, array<String>) | Executes the assembly given an AssemblyName, using the specified arguments. |
|
ExecuteAssemblyByName(String, Evidence) | Obsolete. Executes an assembly given its display name, using the specified evidence. |
|
ExecuteAssemblyByName(String, array<String>) | Executes the assembly given its display name, using the specified arguments. |
|
ExecuteAssemblyByName(AssemblyName, Evidence, array<String>) | Obsolete. Executes the assembly given an AssemblyName, using the specified evidence and arguments. |
|
ExecuteAssemblyByName(String, Evidence, array<String>) | Obsolete. Executes the assembly given its display name, using the specified evidence and arguments. |
|
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 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().) |
|
IsCompatibilitySwitchSet | Gets a nullable Boolean value that indicates whether any compatibility switches are set, and if so, whether the specified compatibility switch is set. |
|
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(AssemblyName) | Loads an Assembly given its AssemblyName. |
|
Load(array<Byte>) | Loads the Assembly with a common object file format (COFF) based image containing an emitted Assembly. |
|
Load(String) | Loads an Assembly given its display name. |
|
Load(AssemblyName, Evidence) | Obsolete. Loads an Assembly given its AssemblyName. |
|
Load(array<Byte>, array<Byte>) | Loads the Assembly with a common object file format (COFF) based image containing an emitted Assembly. The raw bytes representing the symbols for the Assembly are also loaded. |
|
Load(String, Evidence) | Obsolete. Loads an Assembly given its display name. |
|
Load(array<Byte>, array<Byte>, Evidence) | Obsolete. Loads the Assembly with a common object file format (COFF) based image containing an emitted Assembly. The raw bytes representing the symbols for the Assembly are also loaded. |
|
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.) |
|
ReflectionOnlyGetAssemblies | Returns the assemblies that have been loaded into the reflection-only context of the application domain. |
|
SetAppDomainPolicy | Obsolete. 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(String, Object) | Assigns the specified value to the specified application domain property. |
|
SetData(String, Object, IPermission) | Assigns the specified value to the specified application domain property, with a specified permission to demand of the caller when the property is retrieved. |
|
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: