NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AppDomain Methods

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

Public:

AppendPrivatePath Appends the specified name of the directory to the private path.
AppendSharedPath Appends the specified name of the directory to the shared path.
CreateDomain Overloaded. Creates a new application domain.
CreateInstance Overloaded. Creates an instance of a specified type defined in the specified assembly file.
CreateInstanceFrom Overloaded. Overloaded. Creates an instance of a specified type defined in the specified assembly file.
DefineDynamicAssembly Overloaded. Defines a dynamic assembly in the current application domain.
Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
ExecuteAssembly Overloaded. Executes the assembly given its file name.
GetAssemblies Gets the assemblies that have been loaded into this application domain.
GetCurrentThreadId [To be supplied.]
GetData Gets the value stored in the current application domain for the specified data name.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject) This method is used return a lifetime service object that is used to control the lifetime policy to the object. For the default Lifetime service this will be an object of type ILease.
GetThreads Gets the Thread objects representing the threads in the application domain.
GetType (inherited from Object) Gets the Type of the Object.
InitializeLifetimeService [To be supplied.]
Load Overloaded. Loads an Assembly into this application domain.
SetAppDomainPolicy Set the security policy for this application domain.
SetData Sets the value stored in the current application domain for the specified data name.
SetPrincipalPolicy Set the class of the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain.
SetThreadPrincipal Set the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain.
ToString Gets a string representation of the application domain.
Unload Overloaded. [To be supplied.]

Protected:

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

Event Hookup:

AddOnAssemblyLoad Subscribes to the "assembly load" event. The "assembly load" event is raised when an assembly is loaded into the application domain.
AddOnStop Subscribes to the "application domain stop" event. This event occurs after an application domain has been unloaded.
AddOnUnhandledException Subscribes to the "unhandled exception" event.
AddOnUnload Subscribes to the "application domain unload" event.
RemoveOnAssemblyLoad Unsubscribes to the "assembly load" event. The "assembly load" event is raised when an assembly is loaded into the application domain.
RemoveOnStop Unsubscribes to the "application domain stop" event.
RemoveOnUnhandledException Unsubscribes to the "unhandled exception" event.
RemoveOnUnload Unsubscribes to the "application domain unload" event.

See Also

AppDomain Class | System Namespace