AppDomain Methods

The AppDomain type exposes the following members.

  NameDescription
Public method AppendPrivatePath Obsolete. Appends the specified directory name to the private path list.
Public method ApplyPolicy Returns the assembly display name after policy has been applied.
Public method ClearPrivatePath Obsolete. Resets the path that specifies the location of private assemblies to the empty string ("").
Public method ClearShadowCopyPath Obsolete. Resets the list of directories containing shadow copied assemblies to the empty string ("").
Public method CreateComInstanceFrom Overloaded. Creates a new instance of a specified COM type.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework CreateDomain Overloaded. Creates a new application domain.
Public method CreateInstance Overloaded. Creates a new instance of a specified type defined in a specified assembly.
Public method CreateInstanceAndUnwrap Overloaded. Creates a new instance of a specified type.
Public method CreateInstanceFrom Overloaded. Creates a new instance of a specified type defined in the specified assembly file.
Public method CreateInstanceFromAndUnwrap Overloaded. Creates a new instance of a specified type defined in the specified assembly file.
Public method 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.)
Public method DefineDynamicAssembly Overloaded. Defines a dynamic assembly in the current application domain.
Public method DoCallBack Executes the code in another application domain that is identified by the specified delegate.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ExecuteAssembly Overloaded. Executes the assembly contained in the specified file.
Public method ExecuteAssemblyByName Overloaded. Executes an assembly.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAssemblies Gets the assemblies that have been loaded into the execution context of this application domain.
Public method Static member GetCurrentThreadId Obsolete. Gets the current thread identifier.
Public method GetData Gets the value stored in the current application domain for the specified name.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework 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().
Public method InitializeLifetimeService Gives the AppDomain an infinite lifetime by preventing a lease from being created. (Overrides MarshalByRefObject.InitializeLifetimeService().)
Public method IsDefaultAppDomain Returns a value that indicates whether the application domain is the default application domain for the process.
Public method IsFinalizingForUnload Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime.
Public method Load Overloaded. Loads an Assembly into this application domain and the caller’s application domain.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Overloaded.
Public method ReflectionOnlyGetAssemblies Returns the assemblies that have been loaded into the reflection-only context of the application domain.
Public method SetAppDomainPolicy Establishes the security policy level for this application domain.
Public method SetCachePath Obsolete. Establishes the specified directory path as the location where assemblies are shadow copied.
Public method SetData Overloaded. Assigns a value to an application domain property.
Public method SetDynamicBase Obsolete. Establishes the specified directory path as the base directory for subdirectories where dynamically generated files are stored and accessed.
Public method 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.
Public method SetShadowCopyFiles Obsolete. Turns on shadow copying.
Public method SetShadowCopyPath Obsolete. Establishes the specified directory path as the location of assemblies to be shadow copied.
Public method 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.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Obtains a string representation that includes the friendly name of the application domain and any context policies. (Overrides Object.ToString().)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Unload Unloads the specified application domain.
Top

  NameDescription
Explicit interface implemetation Private method _AppDomain.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implemetation Private method _AppDomain.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implemetation Private method _AppDomain.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implemetation Private method _AppDomain.Invoke Provides access to properties and methods exposed by an object.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft