mscorlib(4.0.0.0) API with additions
|
Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited. More...
Public Member Functions | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access) |
Defines a dynamic assembly with the specified name and access mode. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, IEnumerable< CustomAttributeBuilder > assemblyAttributes) |
Defines a dynamic assembly with the specified name, access mode, and custom attributes. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, IEnumerable< CustomAttributeBuilder > assemblyAttributes, SecurityContextSource securityContextSource) |
Defines a dynamic assembly with the specified name, access mode, and custom attributes, and using the specified source for its security context. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir) |
Defines a dynamic assembly using the specified name, access mode, and storage directory. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, Evidence evidence) |
Defines a dynamic assembly using the specified name, access mode, and evidence. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions) |
Defines a dynamic assembly using the specified name, access mode, and permission requests. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence) |
Defines a dynamic assembly using the specified name, access mode, storage directory, and evidence. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions) |
Defines a dynamic assembly using the specified name, access mode, storage directory, and permission requests. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions) |
Defines a dynamic assembly using the specified name, access mode, evidence, and permission requests. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions) |
Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, and permission requests. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized) |
Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, permission requests, and synchronization option. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized, IEnumerable< CustomAttributeBuilder > assemblyAttributes) |
Defines a dynamic assembly with the specified name, access mode, storage directory, evidence, permission requests, synchronization option, and custom attributes. More... | |
AssemblyBuilder | DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, bool isSynchronized, IEnumerable< CustomAttributeBuilder > assemblyAttributes) |
Defines a dynamic assembly using the specified name, access mode, storage directory, and synchronization option. More... | |
string | ApplyPolicy (string assemblyName) |
Returns the assembly display name after policy has been applied. More... | |
ObjectHandle | CreateInstance (string assemblyName, string typeName) |
Creates a new instance of the specified type defined in the specified assembly. More... | |
ObjectHandle | CreateInstanceFrom (string assemblyFile, string typeName) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
ObjectHandle | CreateComInstanceFrom (string assemblyName, string typeName) |
Creates a new instance of a specified COM type. Parameters specify the name of a file that contains an assembly containing the type and the name of the type. More... | |
ObjectHandle | CreateComInstanceFrom (string assemblyFile, string typeName, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) |
Creates a new instance of a specified COM type. Parameters specify the name of a file that contains an assembly containing the type and the name of the type. More... | |
ObjectHandle | CreateInstance (string assemblyName, string typeName, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly. A parameter specifies an array of activation attributes. More... | |
ObjectHandle | CreateInstanceFrom (string assemblyFile, string typeName, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
ObjectHandle | CreateInstance (string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes) |
Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, activation attributes, and authorization to create the type. More... | |
ObjectHandle | CreateInstance (string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, and optional activation attributes. More... | |
ObjectHandle | CreateInstanceFrom (string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
ObjectHandle | CreateInstanceFrom (string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
Assembly | Load (AssemblyName assemblyRef) |
Loads an T:System.Reflection.Assembly given its T:System.Reflection.AssemblyName. More... | |
Assembly | Load (string assemblyString) |
Loads an T:System.Reflection.Assembly given its display name. More... | |
Assembly | Load (byte[] rawAssembly) |
Loads the T:System.Reflection.Assembly with a common object file format (COFF) based image containing an emitted T:System.Reflection.Assembly. More... | |
Assembly | Load (byte[] rawAssembly, byte[] rawSymbolStore) |
Loads the T:System.Reflection.Assembly with a common object file format (COFF) based image containing an emitted T:System.Reflection.Assembly. The raw bytes representing the symbols for the T:System.Reflection.Assembly are also loaded. More... | |
Assembly | Load (byte[] rawAssembly, byte[] rawSymbolStore, Evidence securityEvidence) |
Loads the T:System.Reflection.Assembly with a common object file format (COFF) based image containing an emitted T:System.Reflection.Assembly. The raw bytes representing the symbols for the T:System.Reflection.Assembly are also loaded. More... | |
Assembly | Load (AssemblyName assemblyRef, Evidence assemblySecurity) |
Loads an T:System.Reflection.Assembly given its T:System.Reflection.AssemblyName. More... | |
Assembly | Load (string assemblyString, Evidence assemblySecurity) |
Loads an T:System.Reflection.Assembly given its display name. More... | |
int | ExecuteAssembly (string assemblyFile) |
Executes the assembly contained in the specified file. More... | |
int | ExecuteAssembly (string assemblyFile, Evidence assemblySecurity) |
Executes the assembly contained in the specified file, using the specified evidence. More... | |
int | ExecuteAssembly (string assemblyFile, Evidence assemblySecurity, string[] args) |
Executes the assembly contained in the specified file, using the specified evidence and arguments. More... | |
int | ExecuteAssembly (string assemblyFile, string[] args) |
Executes the assembly contained in the specified file, using the specified arguments. More... | |
int | ExecuteAssembly (string assemblyFile, Evidence assemblySecurity, string[] args, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) |
Executes the assembly contained in the specified file, using the specified evidence, arguments, hash value, and hash algorithm. More... | |
int | ExecuteAssembly (string assemblyFile, string[] args, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) |
Executes the assembly contained in the specified file, using the specified arguments, hash value, and hash algorithm. More... | |
int | ExecuteAssemblyByName (string assemblyName) |
Executes an assembly given its display name. More... | |
int | ExecuteAssemblyByName (string assemblyName, Evidence assemblySecurity) |
Executes an assembly given its display name, using the specified evidence. More... | |
int | ExecuteAssemblyByName (string assemblyName, Evidence assemblySecurity, params string[] args) |
Executes the assembly given its display name, using the specified evidence and arguments. More... | |
int | ExecuteAssemblyByName (string assemblyName, params string[] args) |
Executes the assembly given its display name, using the specified arguments. More... | |
int | ExecuteAssemblyByName (AssemblyName assemblyName, Evidence assemblySecurity, params string[] args) |
Executes the assembly given an T:System.Reflection.AssemblyName, using the specified evidence and arguments. More... | |
int | ExecuteAssemblyByName (AssemblyName assemblyName, params string[] args) |
Executes the assembly given an T:System.Reflection.AssemblyName, using the specified arguments. More... | |
override string | ToString () |
Obtains a string representation that includes the friendly name of the application domain and any context policies. More... | |
Assembly [] | GetAssemblies () |
Gets the assemblies that have been loaded into the execution context of this application domain. More... | |
Assembly [] | ReflectionOnlyGetAssemblies () |
Returns the assemblies that have been loaded into the reflection-only context of the application domain. More... | |
bool | IsFinalizingForUnload () |
Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime. More... | |
void | AppendPrivatePath (string path) |
Appends the specified directory name to the private path list. More... | |
void | ClearPrivatePath () |
Resets the path that specifies the location of private assemblies to the empty string (""). More... | |
void | ClearShadowCopyPath () |
Resets the list of directories containing shadow copied assemblies to the empty string (""). More... | |
void | SetCachePath (string path) |
Establishes the specified directory path as the location where assemblies are shadow copied. More... | |
void | SetData (string name, object data) |
Assigns the specified value to the specified application domain property. More... | |
void | SetData (string name, object data, IPermission permission) |
Assigns the specified value to the specified application domain property, with a specified permission to demand of the caller when the property is retrieved. More... | |
object | GetData (string name) |
Gets the value stored in the current application domain for the specified name. More... | |
bool? | IsCompatibilitySwitchSet (string value) |
Gets a nullable Boolean value that indicates whether any compatibility switches are set, and if so, whether the specified compatibility switch is set. More... | |
static int | GetCurrentThreadId () |
Gets the current thread identifier. More... | |
void | SetAppDomainPolicy (PolicyLevel domainPolicy) |
Establishes the security policy level for this application domain. More... | |
void | SetThreadPrincipal (IPrincipal principal) |
Sets the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain. More... | |
void | SetPrincipalPolicy (PrincipalPolicy policy) |
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. More... | |
override object | InitializeLifetimeService () |
Gives the T:System.AppDomain an infinite lifetime by preventing a lease from being created. More... | |
void | DoCallBack (CrossAppDomainDelegate callBackDelegate) |
Executes the code in another application domain that is identified by the specified delegate. More... | |
void | SetShadowCopyPath (string path) |
Establishes the specified directory path as the location of assemblies to be shadow copied. More... | |
void | SetShadowCopyFiles () |
Turns on shadow copying. More... | |
void | SetDynamicBase (string path) |
Establishes the specified directory path as the base directory for subdirectories where dynamically generated files are stored and accessed. More... | |
object | CreateInstanceAndUnwrap (string assemblyName, string typeName) |
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, and the name of the type. More... | |
object | CreateInstanceAndUnwrap (string assemblyName, string typeName, object[] activationAttributes) |
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, the name of the type, and an array of activation attributes. More... | |
object | CreateInstanceAndUnwrap (string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes) |
Creates a new instance of the specified type. Parameters specify the name of the type, and how it is found and created. More... | |
object | CreateInstanceAndUnwrap (string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes. More... | |
object | CreateInstanceFromAndUnwrap (string assemblyName, string typeName) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
object | CreateInstanceFromAndUnwrap (string assemblyName, string typeName, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
object | CreateInstanceFromAndUnwrap (string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes) |
Creates a new instance of the specified type defined in the specified assembly file. More... | |
object | CreateInstanceFromAndUnwrap (string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes) |
Creates a new instance of the specified type defined in the specified assembly file, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes. More... | |
bool | IsDefaultAppDomain () |
Returns a value that indicates whether the application domain is the default application domain for the process. More... | |
new Type | GetType () |
Gets the type of the current instance. More... | |
![]() | |
object | GetLifetimeService () |
Retrieves the current lifetime service object that controls the lifetime policy for this instance. More... | |
virtual ObjRef | CreateObjRef (Type requestedType) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. More... | |
![]() | |
new bool | Equals (object other) |
Provides COM objects with version-independent access to the inherited M:System.Object.Equals(System.Object) method. More... | |
new int | GetHashCode () |
Provides COM objects with version-independent access to the inherited M:System.Object.GetHashCode method. More... | |
object | GetLifetimeService () |
Provides COM objects with version-independent access to the inherited M:System.MarshalByRefObject.GetLifetimeService method. More... | |
Static Public Member Functions | |
static void | Unload (AppDomain domain) |
Unloads the specified application domain. More... | |
static AppDomain | CreateDomain (string friendlyName, Evidence securityInfo) |
Creates a new application domain with the given name using the supplied evidence. More... | |
static AppDomain | CreateDomain (string friendlyName, Evidence securityInfo, string appBasePath, string appRelativeSearchPath, bool shadowCopyFiles) |
Creates a new application domain with the given name, using evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded into the application domain. More... | |
static AppDomain | CreateDomain (string friendlyName) |
Creates a new application domain with the specified name. More... | |
static AppDomain | CreateDomain (string friendlyName, Evidence securityInfo, AppDomainSetup info) |
Creates a new application domain using the specified name, evidence, and application domain setup information. More... | |
static AppDomain | CreateDomain (string friendlyName, Evidence securityInfo, AppDomainSetup info, PermissionSet grantSet, params StrongName[] fullTrustAssemblies) |
Creates a new application domain using the specified name, evidence, application domain setup information, default permission set, and array of fully trusted assemblies. More... | |
static AppDomain | CreateDomain (string friendlyName, Evidence securityInfo, string appBasePath, string appRelativeSearchPath, bool shadowCopyFiles, AppDomainInitializer adInit, string[] adInitArgs) |
Creates a new application domain with the given name, using evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded into the application domain. Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method. More... | |
Public Attributes | |
string | BaseDirectory => FusionStore.ApplicationBase |
Gets the base directory that the assembly resolver uses to probe for assemblies. More... | |
string | RelativeSearchPath => FusionStore.PrivateBinPath |
Gets the path under the base directory where the assembly resolver should probe for private assemblies. More... | |
AppDomainSetup | SetupInformation => new AppDomainSetup(FusionStore, copyDomainBoundData: true) |
Gets the application domain configuration information for this instance. More... | |
Static Public Attributes | |
static AppDomain | CurrentDomain => Thread.GetDomain() |
Gets the current application domain for the current T:System.Threading.Thread. More... | |
Properties | |
AppDomainManager | DomainManager [get] |
Gets the domain manager that was provided by the host when the application domain was initialized. More... | |
Evidence | Evidence [get] |
Gets the T:System.Security.Policy.Evidence associated with this application domain. More... | |
string | FriendlyName [get] |
Gets the friendly name of this application domain. More... | |
bool | ShadowCopyFiles [get] |
Gets an indication whether the application domain is configured to shadow copy files. More... | |
ActivationContext | ActivationContext [get] |
Gets the activation context for the current application domain. More... | |
ApplicationIdentity | ApplicationIdentity [get] |
Gets the identity of the application in the application domain. More... | |
ApplicationTrust | ApplicationTrust [get] |
Gets information describing permissions granted to an application and whether the application has a trust level that allows it to run. More... | |
string | DynamicDirectory [get] |
Gets the directory that the assembly resolver uses to probe for dynamically created assemblies. More... | |
PermissionSet | PermissionSet [get] |
Gets the permission set of a sandboxed application domain. More... | |
bool??? | IsFullyTrusted [get] |
Gets a value that indicates whether assemblies that are loaded into the current application domain execute with full trust. More... | |
bool | IsHomogenous [get] |
Gets a value that indicates whether the current application domain has a set of permissions that is granted to all assemblies that are loaded into the application domain. More... | |
int | Id [get] |
Gets an integer that uniquely identifies the application domain within the process. More... | |
static bool | MonitoringIsEnabled [get, set] |
Gets or sets a value that indicates whether CPU and memory monitoring of application domains is enabled for the current process. Once monitoring is enabled for a process, it cannot be disabled. More... | |
TimeSpan | MonitoringTotalProcessorTime [get] |
Gets the total processor time that has been used by all threads while executing in the current application domain, since the process started. More... | |
long | MonitoringTotalAllocatedMemorySize [get] |
Gets the total size, in bytes, of all memory allocations that have been made by the application domain since it was created, without subtracting memory that has been collected. More... | |
long | MonitoringSurvivedMemorySize [get] |
Gets the number of bytes that survived the last collection and that are known to be referenced by the current application domain. More... | |
static long | MonitoringSurvivedProcessMemorySize [get] |
Gets the total bytes that survived from the last collection for all application domains in the process. More... | |
ResolveEventHandler | TypeResolve |
Occurs when the resolution of a type fails. More... | |
ResolveEventHandler | ResourceResolve |
Occurs when the resolution of a resource fails because the resource is not a valid linked or embedded resource in the assembly. More... | |
ResolveEventHandler | AssemblyResolve |
Occurs when the resolution of an assembly fails. More... | |
EventHandler | ProcessExit |
Occurs when the default application domain's parent process exits. More... | |
EventHandler | DomainUnload |
Occurs when an T:System.AppDomain is about to be unloaded. More... | |
UnhandledExceptionEventHandler | UnhandledException |
Occurs when an exception is not caught. More... | |
EventHandler< FirstChanceExceptionEventArgs > | FirstChanceException |
Occurs when an exception is thrown in managed code, before the runtime searches the call stack for an exception handler in the application domain. More... | |
![]() | |
Evidence | Evidence [get] |
Provides COM objects with version-independent access to the P:System.AppDomain.Evidence property. More... | |
string | FriendlyName [get] |
Provides COM objects with version-independent access to the P:System.AppDomain.FriendlyName property. More... | |
string | BaseDirectory [get] |
Provides COM objects with version-independent access to the P:System.AppDomain.BaseDirectory property. More... | |
string | RelativeSearchPath [get] |
Provides COM objects with version-independent access to the P:System.AppDomain.RelativeSearchPath property. More... | |
bool | ShadowCopyFiles [get] |
Provides COM objects with version-independent access to the P:System.AppDomain.ShadowCopyFiles property. More... | |
string | DynamicDirectory [get] |
Provides COM objects with version-independent access to the P:System.AppDomain.DynamicDirectory property. More... | |
![]() | |
Evidence | Evidence [get] |
Gets T:System.Security.Policy.Evidence that verifies the current object's identity. More... | |
Events | |
AssemblyLoadEventHandler | AssemblyLoad |
Occurs when an assembly is loaded. More... | |
ResolveEventHandler | ReflectionOnlyAssemblyResolve |
Occurs when the resolution of an assembly fails in the reflection-only context. More... | |
![]() | |
EventHandler | DomainUnload |
Provides COM objects with version-independent access to the E:System.AppDomain.DomainUnload event. More... | |
AssemblyLoadEventHandler | AssemblyLoad |
Provides COM objects with version-independent access to the E:System.AppDomain.AssemblyLoad event. More... | |
EventHandler | ProcessExit |
Provides COM objects with version-independent access to the E:System.AppDomain.ProcessExit event. More... | |
ResolveEventHandler | TypeResolve |
Provides COM objects with version-independent access to the E:System.AppDomain.TypeResolve event. More... | |
ResolveEventHandler | ResourceResolve |
Provides COM objects with version-independent access to the E:System.AppDomain.ResourceResolve event. More... | |
ResolveEventHandler | AssemblyResolve |
Provides COM objects with version-independent access to the E:System.AppDomain.AssemblyResolve event. More... | |
UnhandledExceptionEventHandler | UnhandledException |
Provides COM objects with version-independent access to the E:System.AppDomain.UnhandledException event. More... | |
Additional Inherited Members | |
![]() | |
MarshalByRefObject | MemberwiseClone (bool cloneIdentity) |
Creates a shallow copy of the current T:System.MarshalByRefObject object. More... | |
Represents an application domain, which is an isolated environment where applications execute. This class cannot be inherited.
Definition at line 33 of file AppDomain.cs.
void System.AppDomain.AppendPrivatePath | ( | string | path | ) |
Appends the specified directory name to the private path list.
path | The name of the directory to be appended to the private path. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2362 of file AppDomain.cs.
string System.AppDomain.ApplyPolicy | ( | string | assemblyName | ) |
Returns the assembly display name after policy has been applied.
assemblyName | The assembly display name, in the form provided by the P:System.Reflection.Assembly.FullName property. |
Definition at line 1472 of file AppDomain.cs.
void System.AppDomain.ClearPrivatePath | ( | ) |
Resets the path that specifies the location of private assemblies to the empty string ("").
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2387 of file AppDomain.cs.
void System.AppDomain.ClearShadowCopyPath | ( | ) |
Resets the list of directories containing shadow copied assemblies to the empty string ("").
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2396 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateComInstanceFrom | ( | string | assemblyName, |
string | typeName | ||
) |
Creates a new instance of a specified COM type. Parameters specify the name of a file that contains an assembly containing the type and the name of the type.
assemblyName | The name of a file containing an assembly that defines the requested type. |
typeName | The name of the requested type. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.TypeLoadException | The type cannot be loaded. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.MissingMethodException | No public parameterless constructor was found. |
T:System.IO.FileNotFoundException | assemblyName is not found. |
T:System.MemberAccessException | typeName is an abstract class. -or-This member was invoked with a late-binding mechanism. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.ArgumentException | assemblyName is an empty string (""). |
T:System.BadImageFormatException | assemblyName is not a valid assembly. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NullReferenceException | The COM object that is being referred to is null . |
Definition at line 1578 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateComInstanceFrom | ( | string | assemblyFile, |
string | typeName, | ||
byte [] | hashValue, | ||
AssemblyHashAlgorithm | hashAlgorithm | ||
) |
Creates a new instance of a specified COM type. Parameters specify the name of a file that contains an assembly containing the type and the name of the type.
assemblyFile | The name of a file containing an assembly that defines the requested type. |
typeName | The name of the requested type. |
hashValue | Represents the value of the computed hash code. |
hashAlgorithm | Represents the hash algorithm used by the assembly manifest. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.TypeLoadException | The type cannot be loaded. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.MissingMethodException | No public parameterless constructor was found. |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.MemberAccessException | typeName is an abstract class. -or-This member was invoked with a late-binding mechanism. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.ArgumentException | assemblyFile is the empty string (""). |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NullReferenceException | The COM object that is being referred to is null . |
Definition at line 1609 of file AppDomain.cs.
|
static |
Creates a new application domain with the given name using the supplied evidence.
friendlyName | The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. For more information, see P:System.AppDomain.FriendlyName. |
securityInfo | Evidence that establishes the identity of the code that runs in the application domain. Pass null to use the evidence of the current application domain. |
T:System.ArgumentNullException | friendlyName is null . |
Definition at line 2747 of file AppDomain.cs.
|
static |
Creates a new application domain with the given name, using evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded into the application domain.
friendlyName | The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. For more information, see P:System.AppDomain.FriendlyName. |
securityInfo | Evidence that establishes the identity of the code that runs in the application domain. Pass null to use the evidence of the current application domain. |
appBasePath | The base directory that the assembly resolver uses to probe for assemblies. For more information, see P:System.AppDomain.BaseDirectory. |
appRelativeSearchPath | The path relative to the base directory where the assembly resolver should probe for private assemblies. For more information, see P:System.AppDomain.RelativeSearchPath. |
shadowCopyFiles | If true , a shadow copy of an assembly is loaded into this application domain. |
T:System.ArgumentNullException | friendlyName is null . |
Definition at line 2761 of file AppDomain.cs.
|
static |
Creates a new application domain with the specified name.
friendlyName | The friendly name of the domain. |
T:System.ArgumentNullException | friendlyName is null . |
Definition at line 2782 of file AppDomain.cs.
|
static |
Creates a new application domain using the specified name, evidence, and application domain setup information.
friendlyName | The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. For more information, see P:System.AppDomain.FriendlyName. |
securityInfo | Evidence that establishes the identity of the code that runs in the application domain. Pass null to use the evidence of the current application domain. |
info | An object that contains application domain initialization information. |
T:System.ArgumentNullException | friendlyName is null . |
Definition at line 3152 of file AppDomain.cs.
|
static |
Creates a new application domain using the specified name, evidence, application domain setup information, default permission set, and array of fully trusted assemblies.
friendlyName | The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. For more information, see the description of P:System.AppDomain.FriendlyName. |
securityInfo | Evidence that establishes the identity of the code that runs in the application domain. Pass null to use the evidence of the current application domain. |
info | An object that contains application domain initialization information. |
grantSet | A default permission set that is granted to all assemblies loaded into the new application domain that do not have specific grants. |
fullTrustAssemblies | An array of strong names representing assemblies to be considered fully trusted in the new application domain. |
T:System.ArgumentNullException | friendlyName is null . |
T:System.InvalidOperationException | The application domain is null .-or- The P:System.AppDomainSetup.ApplicationBase property is not set on the T:System.AppDomainSetup object that is supplied for info . |
Definition at line 3197 of file AppDomain.cs.
|
static |
Creates a new application domain with the given name, using evidence, application base path, relative search path, and a parameter that specifies whether a shadow copy of an assembly is to be loaded into the application domain. Specifies a callback method that is invoked when the application domain is initialized, and an array of string arguments to pass the callback method.
friendlyName | The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. For more information, see P:System.AppDomain.FriendlyName. |
securityInfo | Evidence that establishes the identity of the code that runs in the application domain. Pass null to use the evidence of the current application domain. |
appBasePath | The base directory that the assembly resolver uses to probe for assemblies. For more information, see P:System.AppDomain.BaseDirectory. |
appRelativeSearchPath | The path relative to the base directory where the assembly resolver should probe for private assemblies. For more information, see P:System.AppDomain.RelativeSearchPath. |
shadowCopyFiles | true to load a shadow copy of an assembly into the application domain. |
adInit | An T:System.AppDomainInitializer delegate that represents a callback method to invoke when the new T:System.AppDomain object is initialized. |
adInitArgs | An array of string arguments to be passed to the callback represented by adInit , when the new T:System.AppDomain object is initialized. |
T:System.ArgumentNullException | friendlyName is null . |
Definition at line 3227 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstance | ( | string | assemblyName, |
string | typeName | ||
) |
Creates a new instance of the specified type defined in the specified assembly.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.NullReferenceException | This instance is null . |
Implements System._AppDomain.
Definition at line 1504 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstance | ( | string | assemblyName, |
string | typeName, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly. A parameter specifies an array of activation attributes.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.NullReferenceException | This instance is null . |
Implements System._AppDomain.
Definition at line 1637 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstance | ( | string | assemblyName, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes, | ||
Evidence | securityAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, activation attributes, and authorization to create the type.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects using reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null , the T:System.Globalization.CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
securityAttributes | Information used to authorize creation of typeName . |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.MissingMethodException | No matching constructor was found. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject.-or- securityAttributes is not null . When legacy CAS policy is not enabled, securityAttributes should be null. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.NullReferenceException | This instance is null . |
Implements System._AppDomain.
Definition at line 1705 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstance | ( | string | assemblyName, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly. Parameters specify a binder, binding flags, constructor arguments, culture-specific information used to interpret arguments, and optional activation attributes.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects using reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null , the T:System.Globalization.CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or- assemblyName was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.MissingMethodException | No matching constructor was found. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.NullReferenceException | This instance is null . |
Definition at line 1747 of file AppDomain.cs.
object System.AppDomain.CreateInstanceAndUnwrap | ( | string | assemblyName, |
string | typeName | ||
) |
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, and the name of the type.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3747 of file AppDomain.cs.
object System.AppDomain.CreateInstanceAndUnwrap | ( | string | assemblyName, |
string | typeName, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type. Parameters specify the assembly where the type is defined, the name of the type, and an array of activation attributes.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3770 of file AppDomain.cs.
object System.AppDomain.CreateInstanceAndUnwrap | ( | string | assemblyName, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes, | ||
Evidence | securityAttributes | ||
) |
Creates a new instance of the specified type. Parameters specify the name of the type, and how it is found and created.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects using reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | A culture-specific object used to govern the coercion of types. If culture is null , the CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
securityAttributes | Information used to authorize creation of typeName . |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.MissingMethodException | No matching constructor was found. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3800 of file AppDomain.cs.
object System.AppDomain.CreateInstanceAndUnwrap | ( | string | assemblyName, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects using reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | A culture-specific object used to govern the coercion of types. If culture is null , the CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object. that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
T:System.ArgumentNullException | assemblyName or typeName is null . |
T:System.MissingMethodException | No matching constructor was found. |
T:System.TypeLoadException | typename was not found in assemblyName . |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.MethodAccessException | The caller does not have permission to call this constructor. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or- assemblyName was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3829 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstanceFrom | ( | string | assemblyFile, |
string | typeName | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyFile | The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the M:System.Reflection.Assembly.LoadFrom(System.String) method. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
null
if typeName is not found. The return value needs to be unwrapped to access the real object.T:System.ArgumentNullException | assemblyFile is null .-or- typeName is null . |
T:System.IO.FileNotFoundException | assemblyFile was not found. |
T:System.TypeLoadException | typeName was not found in assemblyFile . |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.MissingMethodException | No parameterless public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NullReferenceException | This instance is null . |
Implements System._AppDomain.
Definition at line 1542 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstanceFrom | ( | string | assemblyFile, |
string | typeName, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyFile | The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the M:System.Reflection.Assembly.LoadFrom(System.String) method. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
null
if typeName is not found. The return value needs to be unwrapped to access the real object.T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile was not found. |
T:System.TypeLoadException | typeName was not found in assemblyFile . |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NullReferenceException | This instance is null . |
Implements System._AppDomain.
Definition at line 1669 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstanceFrom | ( | string | assemblyFile, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes, | ||
Evidence | securityAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyFile | The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the M:System.Reflection.Assembly.LoadFrom(System.String) method. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null , the T:System.Globalization.CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
securityAttributes | Information used to authorize creation of typeName . |
null
if typeName is not found. The return value needs to be unwrapped to access the real object.T:System.ArgumentNullException | assemblyFile is null .-or- typeName is null . |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject.-or- securityAttributes is not null . When legacy CAS policy is not enabled, securityAttributes should be null . |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileNotFoundException | assemblyFile was not found. |
T:System.TypeLoadException | typeName was not found in assemblyFile . |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NullReferenceException | This instance is null . |
Implements System._AppDomain.
Definition at line 1795 of file AppDomain.cs.
ObjectHandle System.AppDomain.CreateInstanceFrom | ( | string | assemblyFile, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyFile | The name, including the path, of a file that contains an assembly that defines the requested type. The assembly is loaded using the M:System.Reflection.Assembly.LoadFrom(System.String) method. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null , the T:System.Globalization.CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
null
if typeName is not found. The return value needs to be unwrapped to access the real object.T:System.ArgumentNullException | assemblyFile is null .-or- typeName is null . |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileNotFoundException | assemblyFile was not found. |
T:System.TypeLoadException | typeName was not found in assemblyFile . |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or- assemblyFile was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NullReferenceException | This instance is null . |
Definition at line 1834 of file AppDomain.cs.
object System.AppDomain.CreateInstanceFromAndUnwrap | ( | string | assemblyName, |
string | typeName | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyName | The file name and path of the assembly that defines the requested type. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
null
if typeName is not found.T:System.ArgumentNullException | assemblyName is null .-or- typeName is null . |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.TypeLoadException | typeName was not found in assemblyName . |
T:System.MissingMethodException | No parameterless public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3851 of file AppDomain.cs.
object System.AppDomain.CreateInstanceFromAndUnwrap | ( | string | assemblyName, |
string | typeName, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyName | The file name and path of the assembly that defines the requested type. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly (see the P:System.Type.FullName property). |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects.Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
null
if typeName is not found.T:System.ArgumentNullException | assemblyName is null .-or- typeName is null . |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.TypeLoadException | typeName was not found in assemblyName . |
T:System.MissingMethodException | No parameterless public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3875 of file AppDomain.cs.
object System.AppDomain.CreateInstanceFromAndUnwrap | ( | string | assemblyName, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes, | ||
Evidence | securityAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly file.
assemblyName | The file name and path of the assembly that defines the requested type. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null , the T:System.Globalization.CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
securityAttributes | Information used to authorize creation of typeName . |
null
if typeName is not found.T:System.ArgumentNullException | assemblyName is null .-or- typeName is null . |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.TypeLoadException | typeName was not found in assemblyName . |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3906 of file AppDomain.cs.
object System.AppDomain.CreateInstanceFromAndUnwrap | ( | string | assemblyFile, |
string | typeName, | ||
bool | ignoreCase, | ||
BindingFlags | bindingAttr, | ||
Binder | binder, | ||
object [] | args, | ||
CultureInfo | culture, | ||
object [] | activationAttributes | ||
) |
Creates a new instance of the specified type defined in the specified assembly file, specifying whether the case of the type name is ignored; the binding attributes and the binder that are used to select the type to be created; the arguments of the constructor; the culture; and the activation attributes.
assemblyFile | The file name and path of the assembly that defines the requested type. |
typeName | The fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property. |
ignoreCase | A Boolean value specifying whether to perform a case-sensitive search or not. |
bindingAttr | A combination of zero or more bit flags that affect the search for the typeName constructor. If bindingAttr is zero, a case-sensitive search for public constructors is conducted. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of T:System.Reflection.MemberInfo objects through reflection. If binder is null, the default binder is used. |
args | The arguments to pass to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to invoke. If the default constructor is preferred, args must be an empty array or null. |
culture | Culture-specific information that governs the coercion of args to the formal types declared for the typeName constructor. If culture is null , the T:System.Globalization.CultureInfo for the current thread is used. |
activationAttributes | An array of one or more attributes that can participate in activation. Typically, an array that contains a single T:System.Runtime.Remoting.Activation.UrlAttribute object that specifies the URL that is required to activate a remote object. This parameter is related to client-activated objects. Client activation is a legacy technology that is retained for backward compatibility but is not recommended for new development. Distributed applications should instead use Windows Communication Foundation. |
null
if typeName is not found.T:System.ArgumentNullException | assemblyName is null .-or- typeName is null . |
T:System.NotSupportedException | The caller cannot provide activation attributes for an object that does not inherit from T:System.MarshalByRefObject. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileNotFoundException | assemblyName was not found. |
T:System.TypeLoadException | typeName was not found in assemblyName . |
T:System.MissingMethodException | No matching public constructor was found. |
T:System.MethodAccessException | The caller does not have sufficient permission to call this constructor. |
T:System.BadImageFormatException | assemblyName is not a valid assembly. -or- assemblyName was compiled with a later version of the common language runtime that the version that is currently loaded. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 3936 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access | ||
) |
Defines a dynamic assembly with the specified name and access mode.
name | The unique identity of the dynamic assembly. |
access | The access mode for the dynamic assembly. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1207 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
IEnumerable< CustomAttributeBuilder > | assemblyAttributes | ||
) |
Defines a dynamic assembly with the specified name, access mode, and custom attributes.
name | The unique identity of the dynamic assembly. |
access | The access mode for the dynamic assembly. |
assemblyAttributes | An enumerable list of attributes to be applied to the assembly, or null if there are no attributes. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name starts with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 1224 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
IEnumerable< CustomAttributeBuilder > | assemblyAttributes, | ||
SecurityContextSource | securityContextSource | ||
) |
Defines a dynamic assembly with the specified name, access mode, and custom attributes, and using the specified source for its security context.
name | The unique identity of the dynamic assembly. |
access | The access mode for the dynamic assembly. |
assemblyAttributes | An enumerable list of attributes to be applied to the assembly, or null if there are no attributes. |
securityContextSource | The source of the security context. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name starts with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.ArgumentOutOfRangeException | The value of securityContextSource was not one of the enumeration values. |
Definition at line 1244 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir | ||
) |
Defines a dynamic assembly using the specified name, access mode, and storage directory.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the assembly will be saved. If dir is null , the directory defaults to the current directory. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1261 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
Evidence | evidence | ||
) |
Defines a dynamic assembly using the specified name, access mode, and evidence.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
evidence | The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1279 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
PermissionSet | requiredPermissions, | ||
PermissionSet | optionalPermissions, | ||
PermissionSet | refusedPermissions | ||
) |
Defines a dynamic assembly using the specified name, access mode, and permission requests.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
requiredPermissions | The required permissions request. |
optionalPermissions | The optional permissions request. |
refusedPermissions | The refused permissions request. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1299 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir, | ||
Evidence | evidence | ||
) |
Defines a dynamic assembly using the specified name, access mode, storage directory, and evidence.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the assembly will be saved. If dir is null , the directory defaults to the current directory. |
evidence | The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1318 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir, | ||
PermissionSet | requiredPermissions, | ||
PermissionSet | optionalPermissions, | ||
PermissionSet | refusedPermissions | ||
) |
Defines a dynamic assembly using the specified name, access mode, storage directory, and permission requests.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the assembly will be saved. If dir is null , the directory defaults to the current directory. |
requiredPermissions | The required permissions request. |
optionalPermissions | The optional permissions request. |
refusedPermissions | The refused permissions request. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1339 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
Evidence | evidence, | ||
PermissionSet | requiredPermissions, | ||
PermissionSet | optionalPermissions, | ||
PermissionSet | refusedPermissions | ||
) |
Defines a dynamic assembly using the specified name, access mode, evidence, and permission requests.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
evidence | The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution. |
requiredPermissions | The required permissions request. |
optionalPermissions | The optional permissions request. |
refusedPermissions | The refused permissions request. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1360 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir, | ||
Evidence | evidence, | ||
PermissionSet | requiredPermissions, | ||
PermissionSet | optionalPermissions, | ||
PermissionSet | refusedPermissions | ||
) |
Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, and permission requests.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the assembly will be saved. If dir is null , the directory defaults to the current directory. |
evidence | The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution. |
requiredPermissions | The required permissions request. |
optionalPermissions | The optional permissions request. |
refusedPermissions | The refused permissions request. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1382 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir, | ||
Evidence | evidence, | ||
PermissionSet | requiredPermissions, | ||
PermissionSet | optionalPermissions, | ||
PermissionSet | refusedPermissions, | ||
bool | isSynchronized | ||
) |
Defines a dynamic assembly using the specified name, access mode, storage directory, evidence, permission requests, and synchronization option.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the dynamic assembly will be saved. If dir is null , the directory defaults to the current directory. |
evidence | The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution. |
requiredPermissions | The required permissions request. |
optionalPermissions | The optional permissions request. |
refusedPermissions | The refused permissions request. |
isSynchronized | true to synchronize the creation of modules, types, and members in the dynamic assembly; otherwise, false . |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name begins with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 1406 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir, | ||
Evidence | evidence, | ||
PermissionSet | requiredPermissions, | ||
PermissionSet | optionalPermissions, | ||
PermissionSet | refusedPermissions, | ||
bool | isSynchronized, | ||
IEnumerable< CustomAttributeBuilder > | assemblyAttributes | ||
) |
Defines a dynamic assembly with the specified name, access mode, storage directory, evidence, permission requests, synchronization option, and custom attributes.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the dynamic assembly will be saved. If dir is null , the current directory is used. |
evidence | The evidence that is supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution. |
requiredPermissions | The required permissions request. |
optionalPermissions | The optional permissions request. |
refusedPermissions | The refused permissions request. |
isSynchronized | true to synchronize the creation of modules, types, and members in the dynamic assembly; otherwise, false . |
assemblyAttributes | An enumerable list of attributes to be applied to the assembly, or null if there are no attributes. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name starts with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 1431 of file AppDomain.cs.
AssemblyBuilder System.AppDomain.DefineDynamicAssembly | ( | AssemblyName | name, |
AssemblyBuilderAccess | access, | ||
string | dir, | ||
bool | isSynchronized, | ||
IEnumerable< CustomAttributeBuilder > | assemblyAttributes | ||
) |
Defines a dynamic assembly using the specified name, access mode, storage directory, and synchronization option.
name | The unique identity of the dynamic assembly. |
access | The mode in which the dynamic assembly will be accessed. |
dir | The name of the directory where the dynamic assembly will be saved. If dir is null , the current directory is used. |
isSynchronized | true to synchronize the creation of modules, types, and members in the dynamic assembly; otherwise, false . |
assemblyAttributes | An enumerable list of attributes to be applied to the assembly, or null if there are no attributes. |
T:System.ArgumentNullException | name is null . |
T:System.ArgumentException | The Name property of name is null .-or- The Name property of name starts with white space, or contains a forward or backward slash. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 1451 of file AppDomain.cs.
void System.AppDomain.DoCallBack | ( | CrossAppDomainDelegate | callBackDelegate | ) |
Executes the code in another application domain that is identified by the specified delegate.
callBackDelegate | A delegate that specifies a method to call. |
T:System.ArgumentNullException | callBackDelegate is null . |
Implements System._AppDomain.
Definition at line 2732 of file AppDomain.cs.
int System.AppDomain.ExecuteAssembly | ( | string | assemblyFile | ) |
Executes the assembly contained in the specified file.
assemblyFile | The name of the file that contains the assembly to execute. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Implements System._AppDomain.
Definition at line 2005 of file AppDomain.cs.
int System.AppDomain.ExecuteAssembly | ( | string | assemblyFile, |
Evidence | assemblySecurity | ||
) |
Executes the assembly contained in the specified file, using the specified evidence.
assemblyFile | The name of the file that contains the assembly to execute. |
assemblySecurity | Evidence for loading the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Implements System._AppDomain.
Definition at line 2025 of file AppDomain.cs.
int System.AppDomain.ExecuteAssembly | ( | string | assemblyFile, |
Evidence | assemblySecurity, | ||
string [] | args | ||
) |
Executes the assembly contained in the specified file, using the specified evidence and arguments.
assemblyFile | The name of the file that contains the assembly to execute. |
assemblySecurity | The supplied evidence for the assembly. |
args | The arguments to the entry point of the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NotSupportedException | assemblySecurity is not null . When legacy CAS policy is not enabled, assemblySecurity should be null . |
T:System.MissingMethodException | The specified assembly has no entry point. |
Implements System._AppDomain.
Definition at line 2048 of file AppDomain.cs.
int System.AppDomain.ExecuteAssembly | ( | string | assemblyFile, |
string [] | args | ||
) |
Executes the assembly contained in the specified file, using the specified arguments.
assemblyFile | The name of the file that contains the assembly to execute. |
args | The arguments to the entry point of the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or- assemblyFile was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2077 of file AppDomain.cs.
int System.AppDomain.ExecuteAssembly | ( | string | assemblyFile, |
Evidence | assemblySecurity, | ||
string [] | args, | ||
byte [] | hashValue, | ||
AssemblyHashAlgorithm | hashAlgorithm | ||
) |
Executes the assembly contained in the specified file, using the specified evidence, arguments, hash value, and hash algorithm.
assemblyFile | The name of the file that contains the assembly to execute. |
assemblySecurity | The supplied evidence for the assembly. |
args | The arguments to the entry point of the assembly. |
hashValue | Represents the value of the computed hash code. |
hashAlgorithm | Represents the hash algorithm used by the assembly manifest. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NotSupportedException | assemblySecurity is not null . When legacy CAS policy is not enabled, assemblySecurity should be null . |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2107 of file AppDomain.cs.
int System.AppDomain.ExecuteAssembly | ( | string | assemblyFile, |
string [] | args, | ||
byte [] | hashValue, | ||
AssemblyHashAlgorithm | hashAlgorithm | ||
) |
Executes the assembly contained in the specified file, using the specified arguments, hash value, and hash algorithm.
assemblyFile | The name of the file that contains the assembly to execute. |
args | The arguments to the entry point of the assembly. |
hashValue | Represents the value of the computed hash code. |
hashAlgorithm | Represents the hash algorithm used by the assembly manifest. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or- assemblyFile was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2138 of file AppDomain.cs.
int System.AppDomain.ExecuteAssemblyByName | ( | string | assemblyName | ) |
Executes an assembly given its display name.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
T:System.ArgumentNullException | assemblyName is null . |
T:System.IO.FileNotFoundException | The assembly specified by assemblyName is not found. |
T:System.BadImageFormatException | The assembly specified by assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | The assembly specified by assemblyName was found, but could not be loaded. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2159 of file AppDomain.cs.
int System.AppDomain.ExecuteAssemblyByName | ( | string | assemblyName, |
Evidence | assemblySecurity | ||
) |
Executes an assembly given its display name, using the specified evidence.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
assemblySecurity | Evidence for loading the assembly. |
T:System.ArgumentNullException | assemblyName is null . |
T:System.IO.FileNotFoundException | The assembly specified by assemblyName is not found. |
T:System.IO.FileLoadException | The assembly specified by assemblyName was found, but could not be loaded. |
T:System.BadImageFormatException | The assembly specified by assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2177 of file AppDomain.cs.
int System.AppDomain.ExecuteAssemblyByName | ( | string | assemblyName, |
Evidence | assemblySecurity, | ||
params string [] | args | ||
) |
Executes the assembly given its display name, using the specified evidence and arguments.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
assemblySecurity | Evidence for loading the assembly. |
args | Command-line arguments to pass when starting the process. |
T:System.ArgumentNullException | assemblyName is null . |
T:System.IO.FileNotFoundException | The assembly specified by assemblyName is not found. |
T:System.IO.FileLoadException | The assembly specified by assemblyName was found, but could not be loaded. |
T:System.BadImageFormatException | The assembly specified by assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.NotSupportedException | assemblySecurity is not null . When legacy CAS policy is not enabled, assemblySecurity should be null . |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2198 of file AppDomain.cs.
int System.AppDomain.ExecuteAssemblyByName | ( | string | assemblyName, |
params string [] | args | ||
) |
Executes the assembly given its display name, using the specified arguments.
assemblyName | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
args | Command-line arguments to pass when starting the process. |
T:System.ArgumentNullException | assemblyName is null . |
T:System.IO.FileNotFoundException | The assembly specified by assemblyName is not found. |
T:System.IO.FileLoadException | The assembly specified by assemblyName was found, but could not be loaded. |
T:System.BadImageFormatException | The assembly specified by assemblyName is not a valid assembly. -or- assemblyName was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2225 of file AppDomain.cs.
int System.AppDomain.ExecuteAssemblyByName | ( | AssemblyName | assemblyName, |
Evidence | assemblySecurity, | ||
params string [] | args | ||
) |
Executes the assembly given an T:System.Reflection.AssemblyName, using the specified evidence and arguments.
assemblyName | An T:System.Reflection.AssemblyName object representing the name of the assembly. |
assemblySecurity | Evidence for loading the assembly. |
args | Command-line arguments to pass when starting the process. |
T:System.IO.FileNotFoundException | The assembly specified by assemblyName is not found. |
T:System.IO.FileLoadException | The assembly specified by assemblyName was found, but could not be loaded. |
T:System.BadImageFormatException | The assembly specified by assemblyName is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyName was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.NotSupportedException | assemblySecurity is not null . When legacy CAS policy is not enabled, assemblySecurity should be null . |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2249 of file AppDomain.cs.
int System.AppDomain.ExecuteAssemblyByName | ( | AssemblyName | assemblyName, |
params string [] | args | ||
) |
Executes the assembly given an T:System.Reflection.AssemblyName, using the specified arguments.
assemblyName | An T:System.Reflection.AssemblyName object representing the name of the assembly. |
args | Command-line arguments to pass when starting the process. |
T:System.IO.FileNotFoundException | The assembly specified by assemblyName is not found. |
T:System.IO.FileLoadException | The assembly specified by assemblyName was found, but could not be loaded. |
T:System.BadImageFormatException | The assembly specified by assemblyName is not a valid assembly. -or- assemblyName was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.MissingMethodException | The specified assembly has no entry point. |
Definition at line 2274 of file AppDomain.cs.
Assembly [] System.AppDomain.GetAssemblies | ( | ) |
Gets the assemblies that have been loaded into the execution context of this application domain.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2325 of file AppDomain.cs.
static int System.AppDomain.GetCurrentThreadId | ( | ) |
Gets the current thread identifier.
object System.AppDomain.GetData | ( | string | name | ) |
Gets the value stored in the current application domain for the specified name.
name | The name of a predefined application domain property, or the name of an application domain property you have defined. |
null
if the property does not exist.T:System.ArgumentNullException | name is null . |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2542 of file AppDomain.cs.
new Type System.AppDomain.GetType | ( | ) |
Gets the type of the current instance.
Implements System._AppDomain.
Definition at line 4008 of file AppDomain.cs.
override object System.AppDomain.InitializeLifetimeService | ( | ) |
Gives the T:System.AppDomain an infinite lifetime by preventing a lease from being created.
null
.T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2723 of file AppDomain.cs.
bool? System.AppDomain.IsCompatibilitySwitchSet | ( | string | value | ) |
Gets a nullable Boolean value that indicates whether any compatibility switches are set, and if so, whether the specified compatibility switch is set.
value | The compatibility switch to test. |
Nothing
in Visual Basic) if no compatibility switches are set; otherwise, a Boolean value that indicates whether the compatibility switch that is specified by value is set.Definition at line 2612 of file AppDomain.cs.
bool System.AppDomain.IsDefaultAppDomain | ( | ) |
Returns a value that indicates whether the application domain is the default application domain for the process.
true
if the current T:System.AppDomain object represents the default application domain for the process; otherwise, false
.Definition at line 3949 of file AppDomain.cs.
bool System.AppDomain.IsFinalizingForUnload | ( | ) |
Indicates whether this application domain is unloading, and the objects it contains are being finalized by the common language runtime.
true
if this application domain is unloading and the common language runtime has started invoking finalizers; otherwise, false
.Assembly System.AppDomain.Load | ( | AssemblyName | assemblyRef | ) |
Loads an T:System.Reflection.Assembly given its T:System.Reflection.AssemblyName.
assemblyRef | An object that describes the assembly to load. |
T:System.ArgumentNullException | assemblyRef is null . |
T:System.IO.FileNotFoundException | assemblyRef is not found. |
T:System.BadImageFormatException | assemblyRef is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyRef was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Implements System._AppDomain.
Definition at line 1863 of file AppDomain.cs.
Assembly System.AppDomain.Load | ( | string | assemblyString | ) |
Loads an T:System.Reflection.Assembly given its display name.
assemblyString | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
T:System.ArgumentNullException | assemblyString is null |
T:System.IO.FileNotFoundException | assemblyString is not found. |
T:System.BadImageFormatException | assemblyString is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyString was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Implements System._AppDomain.
Definition at line 1882 of file AppDomain.cs.
Assembly System.AppDomain.Load | ( | byte [] | rawAssembly | ) |
Loads the T:System.Reflection.Assembly with a common object file format (COFF) based image containing an emitted T:System.Reflection.Assembly.
rawAssembly | An array of type byte that is a COFF-based image containing an emitted assembly. |
T:System.ArgumentNullException | rawAssembly is null . |
T:System.BadImageFormatException | rawAssembly is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and rawAssembly was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Implements System._AppDomain.
Definition at line 1899 of file AppDomain.cs.
Assembly System.AppDomain.Load | ( | byte [] | rawAssembly, |
byte [] | rawSymbolStore | ||
) |
Loads the T:System.Reflection.Assembly with a common object file format (COFF) based image containing an emitted T:System.Reflection.Assembly. The raw bytes representing the symbols for the T:System.Reflection.Assembly are also loaded.
rawAssembly | An array of type byte that is a COFF-based image containing an emitted assembly. |
rawSymbolStore | An array of type byte containing the raw bytes representing the symbols for the assembly. |
T:System.ArgumentNullException | rawAssembly is null . |
T:System.BadImageFormatException | rawAssembly is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and rawAssembly was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Implements System._AppDomain.
Definition at line 1917 of file AppDomain.cs.
Assembly System.AppDomain.Load | ( | byte [] | rawAssembly, |
byte [] | rawSymbolStore, | ||
Evidence | securityEvidence | ||
) |
Loads the T:System.Reflection.Assembly with a common object file format (COFF) based image containing an emitted T:System.Reflection.Assembly. The raw bytes representing the symbols for the T:System.Reflection.Assembly are also loaded.
rawAssembly | An array of type byte that is a COFF-based image containing an emitted assembly. |
rawSymbolStore | An array of type byte containing the raw bytes representing the symbols for the assembly. |
securityEvidence | Evidence for loading the assembly. |
T:System.ArgumentNullException | rawAssembly is null . |
T:System.BadImageFormatException | rawAssembly is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and rawAssembly was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NotSupportedException | securityEvidence is not null . When legacy CAS policy is not enabled, securityEvidence should be null . |
Implements System._AppDomain.
Definition at line 1940 of file AppDomain.cs.
Assembly System.AppDomain.Load | ( | AssemblyName | assemblyRef, |
Evidence | assemblySecurity | ||
) |
Loads an T:System.Reflection.Assembly given its T:System.Reflection.AssemblyName.
assemblyRef | An object that describes the assembly to load. |
assemblySecurity | Evidence for loading the assembly. |
T:System.ArgumentNullException | assemblyRef is null |
T:System.IO.FileNotFoundException | assemblyRef is not found. |
T:System.BadImageFormatException | assemblyRef is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyRef was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Implements System._AppDomain.
Definition at line 1965 of file AppDomain.cs.
Loads an T:System.Reflection.Assembly given its display name.
assemblyString | The display name of the assembly. See P:System.Reflection.Assembly.FullName. |
assemblySecurity | Evidence for loading the assembly. |
T:System.ArgumentNullException | assemblyString is null |
T:System.IO.FileNotFoundException | assemblyString is not found. |
T:System.BadImageFormatException | assemblyString is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyString was compiled with a later version. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Implements System._AppDomain.
Definition at line 1986 of file AppDomain.cs.
Assembly [] System.AppDomain.ReflectionOnlyGetAssemblies | ( | ) |
Returns the assemblies that have been loaded into the reflection-only context of the application domain.
T:System.AppDomainUnloadedException | An operation is attempted on an unloaded application domain. |
Definition at line 2333 of file AppDomain.cs.
void System.AppDomain.SetAppDomainPolicy | ( | PolicyLevel | domainPolicy | ) |
Establishes the security policy level for this application domain.
domainPolicy | The security policy level. |
T:System.ArgumentNullException | domainPolicy is null . |
T:System.Security.Policy.PolicyException | The security policy level has already been set. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2663 of file AppDomain.cs.
void System.AppDomain.SetCachePath | ( | string | path | ) |
Establishes the specified directory path as the location where assemblies are shadow copied.
path | The fully qualified path to the shadow copy location. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2406 of file AppDomain.cs.
void System.AppDomain.SetData | ( | string | name, |
object | data | ||
) |
Assigns the specified value to the specified application domain property.
name | The name of a user-defined application domain property to create or change. |
data | The value of the property. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2416 of file AppDomain.cs.
void System.AppDomain.SetData | ( | string | name, |
object | data, | ||
IPermission | permission | ||
) |
Assigns the specified value to the specified application domain property, with a specified permission to demand of the caller when the property is retrieved.
name | The name of a user-defined application domain property to create or change. |
data | The value of the property. |
permission | The permission to demand of the caller when the property is retrieved. |
T:System.ArgumentNullException | name is null . |
T:System.InvalidOperationException | name specifies a system-defined property string and permission is not null . |
Definition at line 2430 of file AppDomain.cs.
void System.AppDomain.SetDynamicBase | ( | string | path | ) |
Establishes the specified directory path as the base directory for subdirectories where dynamically generated files are stored and accessed.
path | The fully qualified path that is the base directory for subdirectories where dynamic assemblies are stored. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 3622 of file AppDomain.cs.
void System.AppDomain.SetPrincipalPolicy | ( | PrincipalPolicy | policy | ) |
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.
policy | One of the T:System.Security.Principal.PrincipalPolicy values that specifies the type of the principal object to attach to threads. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2714 of file AppDomain.cs.
void System.AppDomain.SetShadowCopyFiles | ( | ) |
Turns on shadow copying.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 3612 of file AppDomain.cs.
void System.AppDomain.SetShadowCopyPath | ( | string | path | ) |
Establishes the specified directory path as the location of assemblies to be shadow copied.
path | A list of directory names, where each name is separated by a semicolon. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 3603 of file AppDomain.cs.
void System.AppDomain.SetThreadPrincipal | ( | IPrincipal | principal | ) |
Sets the default principal object to be attached to threads if they attempt to bind to a principal while executing in this application domain.
principal | The principal object to attach to threads. |
T:System.ArgumentNullException | principal is null . |
T:System.Security.Policy.PolicyException | The thread principal has already been set. |
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Implements System._AppDomain.
Definition at line 2693 of file AppDomain.cs.
override string System.AppDomain.ToString | ( | ) |
Obtains a string representation that includes the friendly name of the application domain and any context policies.
T:System.AppDomainUnloadedException | The application domain represented by the current T:System.AppDomain has been unloaded. |
Implements System._AppDomain.
Definition at line 2297 of file AppDomain.cs.
|
static |
Unloads the specified application domain.
domain | An application domain to unload. |
T:System.ArgumentNullException | domain is null . |
T:System.CannotUnloadAppDomainException | domain could not be unloaded. |
T:System.Exception | An error occurred during the unload process. |
Definition at line 2634 of file AppDomain.cs.
string System.AppDomain.BaseDirectory => FusionStore.ApplicationBase |
Gets the base directory that the assembly resolver uses to probe for assemblies.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 323 of file AppDomain.cs.
|
static |
Gets the current application domain for the current T:System.Threading.Thread.
Definition at line 274 of file AppDomain.cs.
string System.AppDomain.RelativeSearchPath => FusionStore.PrivateBinPath |
Gets the path under the base directory where the assembly resolver should probe for private assemblies.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 328 of file AppDomain.cs.
AppDomainSetup System.AppDomain.SetupInformation => new AppDomainSetup(FusionStore, copyDomainBoundData: true) |
Gets the application domain configuration information for this instance.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 431 of file AppDomain.cs.
|
get |
Gets the activation context for the current application domain.
null
if the domain has no activation context.Definition at line 350 of file AppDomain.cs.
|
get |
Gets the identity of the application in the application domain.
Definition at line 361 of file AppDomain.cs.
|
get |
Gets information describing permissions granted to an application and whether the application has a trust level that allows it to run.
Definition at line 372 of file AppDomain.cs.
|
addremove |
Occurs when the resolution of an assembly fails.
Definition at line 638 of file AppDomain.cs.
|
get |
Gets the domain manager that was provided by the host when the application domain was initialized.
null
if no domain manager was provided.Definition at line 245 of file AppDomain.cs.
|
addremove |
Occurs when an T:System.AppDomain is about to be unloaded.
Definition at line 687 of file AppDomain.cs.
|
get |
Gets the directory that the assembly resolver uses to probe for dynamically created assemblies.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 388 of file AppDomain.cs.
|
get |
Gets the T:System.Security.Policy.Evidence associated with this application domain.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 280 of file AppDomain.cs.
|
addremove |
Occurs when an exception is thrown in managed code, before the runtime searches the call stack for an exception handler in the application domain.
Definition at line 736 of file AppDomain.cs.
|
get |
Gets the friendly name of this application domain.
T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 312 of file AppDomain.cs.
|
get |
Gets an integer that uniquely identifies the application domain within the process.
Definition at line 491 of file AppDomain.cs.
|
get |
Gets a value that indicates whether assemblies that are loaded into the current application domain execute with full trust.
true
if assemblies that are loaded into the current application domain execute with full trust; otherwise, false
.Definition at line 454 of file AppDomain.cs.
|
get |
Gets a value that indicates whether the current application domain has a set of permissions that is granted to all assemblies that are loaded into the application domain.
true
if the current application domain has a homogenous set of permissions; otherwise, false
.Definition at line 468 of file AppDomain.cs.
|
staticgetset |
Gets or sets a value that indicates whether CPU and memory monitoring of application domains is enabled for the current process. Once monitoring is enabled for a process, it cannot be disabled.
true
if monitoring is enabled; otherwise false
.T:System.ArgumentException | The current process attempted to assign the value false to this property. |
Definition at line 504 of file AppDomain.cs.
|
get |
Gets the number of bytes that survived the last collection and that are known to be referenced by the current application domain.
T:System.InvalidOperationException | The static (Shared in Visual Basic) P:System.AppDomain.MonitoringIsEnabled property is set to false . |
Definition at line 560 of file AppDomain.cs.
|
staticget |
Gets the total bytes that survived from the last collection for all application domains in the process.
T:System.InvalidOperationException | The static (Shared in Visual Basic) P:System.AppDomain.MonitoringIsEnabled property is set to false . |
Definition at line 577 of file AppDomain.cs.
|
get |
Gets the total size, in bytes, of all memory allocations that have been made by the application domain since it was created, without subtracting memory that has been collected.
T:System.InvalidOperationException | The static (Shared in Visual Basic) P:System.AppDomain.MonitoringIsEnabled property is set to false . |
Definition at line 542 of file AppDomain.cs.
|
get |
Gets the total processor time that has been used by all threads while executing in the current application domain, since the process started.
T:System.InvalidOperationException | The static (Shared in Visual Basic) P:System.AppDomain.MonitoringIsEnabled property is set to false . |
Definition at line 525 of file AppDomain.cs.
|
get |
Gets the permission set of a sandboxed application domain.
Definition at line 436 of file AppDomain.cs.
|
addremove |
Occurs when the default application domain's parent process exits.
Definition at line 663 of file AppDomain.cs.
|
addremove |
Occurs when the resolution of a resource fails because the resource is not a valid linked or embedded resource in the assembly.
Definition at line 617 of file AppDomain.cs.
|
get |
Gets an indication whether the application domain is configured to shadow copy files.
true
if the application domain is configured to shadow copy files; otherwise, false
.T:System.AppDomainUnloadedException | The operation is attempted on an unloaded application domain. |
Definition at line 335 of file AppDomain.cs.
|
addremove |
Occurs when the resolution of a type fails.
Definition at line 596 of file AppDomain.cs.
|
addremove |
Occurs when an exception is not caught.
Definition at line 711 of file AppDomain.cs.
AssemblyLoadEventHandler System.AppDomain.AssemblyLoad |
Occurs when an assembly is loaded.
Definition at line 592 of file AppDomain.cs.
ResolveEventHandler System.AppDomain.ReflectionOnlyAssemblyResolve |
Occurs when the resolution of an assembly fails in the reflection-only context.
Definition at line 659 of file AppDomain.cs.