System Namespace
Represents an application domain, which is an isolated environment where applications execute.
Visibility |
Name |
Parameters |
Return Type |
public |
AppendPrivatePath |
(
String
path
)
|
Void
|
public |
ClearPrivatePath |
( )
|
Void
|
public |
ClearShadowCopyPath |
( )
|
Void
|
public |
CreateInstance |
(
String
assemblyName
,
String
typeName
,
Object
activationAttributes
)
|
ObjectHandle
|
public |
CreateInstance |
(
String
assemblyName
,
String
typeName
)
|
ObjectHandle
|
public |
CreateInstance |
(
String
assemblyName
,
String
typeName
,
Boolean
ignoreCase
,
BindingFlags
bindingAttr
,
Binder
binder
,
Object
args
,
CultureInfo
culture
,
Object
activationAttributes
,
Evidence
securityAttributes
)
|
ObjectHandle
|
public |
CreateInstanceFrom |
(
String
assemblyFile
,
String
typeName
,
Boolean
ignoreCase
,
BindingFlags
bindingAttr
,
Binder
binder
,
Object
args
,
CultureInfo
culture
,
Object
activationAttributes
,
Evidence
securityAttributes
)
|
ObjectHandle
|
public |
CreateInstanceFrom |
(
String
assemblyFile
,
String
typeName
)
|
ObjectHandle
|
public |
CreateInstanceFrom |
(
String
assemblyFile
,
String
typeName
,
Object
activationAttributes
)
|
ObjectHandle
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
String
dir
,
PermissionSet
requiredPermissions
,
PermissionSet
optionalPermissions
,
PermissionSet
refusedPermissions
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
String
dir
,
Evidence
evidence
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
String
dir
,
Evidence
evidence
,
PermissionSet
requiredPermissions
,
PermissionSet
optionalPermissions
,
PermissionSet
refusedPermissions
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
Evidence
evidence
,
PermissionSet
requiredPermissions
,
PermissionSet
optionalPermissions
,
PermissionSet
refusedPermissions
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
PermissionSet
requiredPermissions
,
PermissionSet
optionalPermissions
,
PermissionSet
refusedPermissions
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
String
dir
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
Evidence
evidence
)
|
AssemblyBuilder
|
public |
DefineDynamicAssembly |
(
AssemblyName
name
,
AssemblyBuilderAccess
access
,
String
dir
,
Evidence
evidence
,
PermissionSet
requiredPermissions
,
PermissionSet
optionalPermissions
,
PermissionSet
refusedPermissions
,
Boolean
isSynchronized
)
|
AssemblyBuilder
|
public |
DoCallBack |
(
CrossAppDomainDelegate
theDelegate
)
|
Void
|
public |
Equals |
(
Object
other
)
|
Boolean
|
public |
ExecuteAssembly |
(
String
assemblyFile
,
Evidence
assemblySecurity
)
|
Int32
|
public |
ExecuteAssembly |
(
String
assemblyFile
,
Evidence
assemblySecurity
,
String
args
)
|
Int32
|
public |
ExecuteAssembly |
(
String
assemblyFile
)
|
Int32
|
public |
GetAssemblies |
( )
|
Assembly
|
public |
GetData |
(
String
name
)
|
Object
|
public |
GetHashCode |
( )
|
Int32
|
public |
GetIDsOfNames |
(
Guid&
riid
,
IntPtr
rgszNames
,
UInt32
cNames
,
UInt32
lcid
,
IntPtr
rgDispId
)
|
Void
|
public |
GetLifetimeService |
( )
|
Object
|
public |
GetType |
( )
|
Type
|
public |
GetTypeInfo |
(
UInt32
iTInfo
,
UInt32
lcid
,
IntPtr
ppTInfo
)
|
Void
|
public |
GetTypeInfoCount |
(
UInt32&
pcTInfo
)
|
Void
|
public |
InitializeLifetimeService |
( )
|
Object
|
public |
Invoke |
(
UInt32
dispIdMember
,
Guid&
riid
,
UInt32
lcid
,
Int16
wFlags
,
IntPtr
pDispParams
,
IntPtr
pVarResult
,
IntPtr
pExcepInfo
,
IntPtr
puArgErr
)
|
Void
|
public |
Load |
(
Byte
rawAssembly
,
Byte
rawSymbolStore
)
|
Assembly
|
public |
Load |
(
AssemblyName
assemblyRef
,
Evidence
assemblySecurity
)
|
Assembly
|
public |
Load |
(
Byte
rawAssembly
,
Byte
rawSymbolStore
,
Evidence
securityEvidence
)
|
Assembly
|
public |
Load |
(
String
assemblyString
)
|
Assembly
|
public |
Load |
(
String
assemblyString
,
Evidence
assemblySecurity
)
|
Assembly
|
public |
Load |
(
Byte
rawAssembly
)
|
Assembly
|
public |
Load |
(
AssemblyName
assemblyRef
)
|
Assembly
|
public |
SetAppDomainPolicy |
(
PolicyLevel
domainPolicy
)
|
Void
|
public |
SetCachePath |
(
String
s
)
|
Void
|
public |
SetData |
(
String
name
,
Object
data
)
|
Void
|
public |
SetPrincipalPolicy |
(
PrincipalPolicy
policy
)
|
Void
|
public |
SetShadowCopyPath |
(
String
s
)
|
Void
|
public |
SetThreadPrincipal |
(
IPrincipal
principal
)
|
Void
|
public |
ToString |
( )
|
String
|
|
Class |
Description |
AppDomain |
Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited. |
Application domains, which are represented by AppDomain objects, provide isolation, unloading, and security boundaries for executing managed code.
Multiple application domains can run in a single process; however, there is not a one-to-one correlation between application domains and threads. Several threads can belong to a single application domain, and while a given thread is not confined to a single application domain, at any given time, a thread executes in a single application domain.
Application domains are created using the CreateDomain method. AppDomain instances are used to load and execute assemblies ( Assembly ). When a AppDomain is no longer in use, it can be unloaded.
The _AppDomain interface implements a set of events to enable applications to respond when an assembly is loaded, an application domain will be unloaded, or an unhandled exception is thrown.
AppDomain Class AppDomainSetup Class
|
|