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 Members

Public:

Properties

BaseDirectory Read-only. Get the base directory that the assembly resolver uses to probe for assemblies. The BaseDirectory property corresponds to the assembly resolver's APPBASE.
CurrentDomain Read-only. Gets the current application domain for the current Thread.
Evidence Read-only. Gets the Evidence associated with this application domain that is used as input to security policy.
FriendlyName Read-only. Gets the friendly name of this application domain.
RelativeSearchPath [To be supplied.]
ShadowCopyFiles Read-only. If ShadowCopyFiles is set all assemblies that are loaded in the application domain are shadow copied, not just a particular one.
SharedSearchPath Read-only. Get the path relative to the base directory where the assembly resolver should probe for shared assemblies. Shared assemblies are published assemblies. Published assemblies need not be deployed in the same directory structure as the application.
SnapShotID Read-only. Get the SnapShotID used by the assembly resolver to track what assemblies are loaded in an application domain. The SnapShotID is related to the ShadowCopyFiles property. The host will change the SnapShotID if they wish shadow copying to be started "fresh" for this instance of the application domain rather than reusing the copies that were made before.

Methods

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.]

Events

AssemblyLoad [To be supplied.]
Stop [To be supplied.]
UnhandledException [To be supplied.]
Unload [To be supplied.]

Protected:

Methods

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:

Methods

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