Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AppDomain Methods

The methods of the AppDomain class are listed here. For a complete list of AppDomain class members, see the AppDomain Members topic.

Public Methods

public methodAppendPrivatePath Appends the specified name of the directory to the private path.
public methodClearPrivatePath Resets the path that specifies the location of private assemblies to the empty string ("").
public methodClearShadowCopyPath Resets the list of directories containing shadow copied assemblies to the empty string ("").
public methodCreateComInstanceFrom Overloaded.
public methodstatic (Shared in Visual Basic)CreateDomain

Supported by the .NET Compact Framework.

Overloaded. Creates a new application domain.
public methodCreateInstance Overloaded. Creates a new instance of a specified type defined in a specified assembly.
public methodCreateInstanceAndUnwrap Overloaded. Creates a new instance of a specified type.
public methodCreateInstanceFrom Overloaded. Creates a new instance of a specified type defined in the specified assembly file.
public methodCreateInstanceFromAndUnwrap Overloaded. Creates a new instance of a specified type defined in the specified assembly file.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDefineDynamicAssembly Overloaded. Defines a dynamic assembly in the current application domain.
public methodDoCallBack Executes the code in another application domain that is identified by the specified delegate.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodExecuteAssembly

Supported by the .NET Compact Framework.

Overloaded. Executes the assembly contained in the specified file.
public methodGetAssemblies Gets the assemblies that have been loaded into this application domain.
public methodstatic (Shared in Visual Basic)GetCurrentThreadId Gets the current thread identifier.
public methodGetData Gets the value stored in the current application domain for the specified data name.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService Overridden. Gives the AppDomain an infinite lifetime by preventing a lease from being created.
public methodIsFinalizingForUnload Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime.
public methodLoad Overloaded. Loads an Assembly into this application domain.
public methodSetAppDomainPolicy Establishes the security policy level for this application domain.
public methodSetCachePath Establishes the specified directory path as the location where assemblies are shadow copied.
public methodSetData Assigns the specified value to the specified application domain property.
public methodSetDynamicBase Establishes the specified directory path as the location where dynamically generated files are stored and accessed.
public methodSetPrincipalPolicy 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.
public methodSetShadowCopyFiles Turns on shadow copying.
public methodSetShadowCopyPath Establishes the specified directory path as the location of assemblies to be shadow copied.
public methodSetThreadPrincipal Sets the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Obtains the String representation of this instance.
public methodstatic (Shared in Visual Basic)Unload Unloads the specified application domain.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

AppDomain Class | System Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft