mscorlib(4.0.0.0) API with additions
System._AppDomain Interface Reference

Exposes the public members of the T:System.AppDomain class to unmanaged code. More...

Inheritance diagram for System._AppDomain:
[legend]

Public Member Functions

void GetTypeInfoCount (out uint pcTInfo)
 Retrieves the number of type information interfaces that an object provides (either 0 or 1). More...
 
void GetTypeInfo (uint iTInfo, uint lcid, IntPtr ppTInfo)
 Retrieves the type information for an object, which can then be used to get the type information for an interface. More...
 
void GetIDsOfNames ([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId)
 Maps a set of names to a corresponding set of dispatch identifiers. More...
 
void Invoke (uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
 Provides access to properties and methods exposed by an object. More...
 
new string ToString ()
 Provides COM objects with version-independent access to the M:System.AppDomain.ToString method. 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...
 
new Type GetType ()
 Provides COM objects with version-independent access to the M:System.AppDomain.GetType method. More...
 
object InitializeLifetimeService ()
 Provides COM objects with version-independent access to the M:System.AppDomain.InitializeLifetimeService method. More...
 
object GetLifetimeService ()
 Provides COM objects with version-independent access to the inherited M:System.MarshalByRefObject.GetLifetimeService method. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, Evidence evidence)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.Security.Policy.Evidence) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload. More...
 
AssemblyBuilder DefineDynamicAssembly (AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized)
 Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet,System.Boolean) method overload. More...
 
ObjectHandle CreateInstance (string assemblyName, string typeName)
 Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System.String,System.String) method. More...
 
ObjectHandle CreateInstanceFrom (string assemblyFile, string typeName)
 Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(System.String,System.String) method overload. More...
 
ObjectHandle CreateInstance (string assemblyName, string typeName, object[] activationAttributes)
 Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System.String,System.String,System.Object[]) method overload. More...
 
ObjectHandle CreateInstanceFrom (string assemblyFile, string typeName, object[] activationAttributes)
 Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(System.String,System.String,System.Object[]) method overload. More...
 
ObjectHandle CreateInstance (string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes)
 Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[],System.Security.Policy.Evidence) method overload. More...
 
ObjectHandle CreateInstanceFrom (string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes)
 Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[],System.Security.Policy.Evidence) method overload. More...
 
Assembly Load (AssemblyName assemblyRef)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Reflection.AssemblyName) method overload. More...
 
Assembly Load (string assemblyString)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.String) method overload. More...
 
Assembly Load (byte[] rawAssembly)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Byte[]) method overload. More...
 
Assembly Load (byte[] rawAssembly, byte[] rawSymbolStore)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Byte[],System.Byte[]) method overload. More...
 
Assembly Load (byte[] rawAssembly, byte[] rawSymbolStore, Evidence securityEvidence)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Byte[],System.Byte[],System.Security.Policy.Evidence) method overload. More...
 
Assembly Load (AssemblyName assemblyRef, Evidence assemblySecurity)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence) method overload. More...
 
Assembly Load (string assemblyString, Evidence assemblySecurity)
 Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.String,System.Security.Policy.Evidence) method overload. More...
 
int ExecuteAssembly (string assemblyFile, Evidence assemblySecurity)
 Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System.String,System.Security.Policy.Evidence) method overload. More...
 
int ExecuteAssembly (string assemblyFile)
 Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System.String) method overload. More...
 
int ExecuteAssembly (string assemblyFile, Evidence assemblySecurity, string[] args)
 Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System.String,System.Security.Policy.Evidence,System.String[]) method overload. More...
 
Assembly [] GetAssemblies ()
 Provides COM objects with version-independent access to the M:System.AppDomain.GetAssemblies method. More...
 
void AppendPrivatePath (string path)
 Provides COM objects with version-independent access to the M:System.AppDomain.AppendPrivatePath(System.String) method. More...
 
void ClearPrivatePath ()
 Provides COM objects with version-independent access to the M:System.AppDomain.ClearPrivatePath method. More...
 
void SetShadowCopyPath (string s)
 Provides COM objects with version-independent access to the M:System.AppDomain.SetShadowCopyPath(System.String) method. More...
 
void ClearShadowCopyPath ()
 Provides COM objects with version-independent access to the M:System.AppDomain.ClearShadowCopyPath method. More...
 
void SetCachePath (string s)
 Provides COM objects with version-independent access to the M:System.AppDomain.SetCachePath(System.String) method. More...
 
void SetData (string name, object data)
 Provides COM objects with version-independent access to the M:System.AppDomain.SetData(System.String,System.Object) method. More...
 
object GetData (string name)
 Provides COM objects with version-independent access to the M:System.AppDomain.GetData(System.String) method. More...
 
void SetAppDomainPolicy (PolicyLevel domainPolicy)
 Provides COM objects with version-independent access to the M:System.AppDomain.SetAppDomainPolicy(System.Security.Policy.PolicyLevel) method. More...
 
void SetThreadPrincipal (IPrincipal principal)
 Provides COM objects with version-independent access to the M:System.AppDomain.SetThreadPrincipal(System.Security.Principal.IPrincipal) method. More...
 
void SetPrincipalPolicy (PrincipalPolicy policy)
 Provides COM objects with version-independent access to the M:System.AppDomain.SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy) method. More...
 
void DoCallBack (CrossAppDomainDelegate theDelegate)
 Provides COM objects with version-independent access to the M:System.AppDomain.DoCallBack(System.CrossAppDomainDelegate) method. More...
 

Properties

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

Events

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

Detailed Description

Exposes the public members of the T:System.AppDomain class to unmanaged code.

Definition at line 17 of file _AppDomain.cs.

Member Function Documentation

◆ AppendPrivatePath()

void System._AppDomain.AppendPrivatePath ( string  path)

Provides COM objects with version-independent access to the M:System.AppDomain.AppendPrivatePath(System.String) method.

Parameters
pathThe name of the directory to be appended to the private path.

Implemented in System.AppDomain.

◆ ClearPrivatePath()

void System._AppDomain.ClearPrivatePath ( )

Provides COM objects with version-independent access to the M:System.AppDomain.ClearPrivatePath method.

Implemented in System.AppDomain.

◆ ClearShadowCopyPath()

void System._AppDomain.ClearShadowCopyPath ( )

Provides COM objects with version-independent access to the M:System.AppDomain.ClearShadowCopyPath method.

Implemented in System.AppDomain.

◆ CreateInstance() [1/3]

ObjectHandle System._AppDomain.CreateInstance ( string  assemblyName,
string  typeName 
)

Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System.String,System.String) method.

Parameters
assemblyNameThe display name of the assembly. See P:System.Reflection.Assembly.FullName.
typeNameThe fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property.
Returns
An object that is a wrapper for the new instance specified by typeName . The return value needs to be unwrapped to access the real object.

Implemented in System.AppDomain.

◆ CreateInstance() [2/3]

ObjectHandle System._AppDomain.CreateInstance ( string  assemblyName,
string  typeName,
object []  activationAttributes 
)

Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System.String,System.String,System.Object[]) method overload.

Parameters
assemblyNameThe display name of the assembly. See P:System.Reflection.Assembly.FullName.
typeNameThe fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property.
activationAttributesAn 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. The T:System.Runtime.Remoting.Activation.UrlAttribute specifies the URL that is required to activate a remote object.
Returns
An object that is a wrapper for the new instance specified by typeName . The return value needs to be unwrapped to access the real object.

Implemented in System.AppDomain.

◆ CreateInstance() [3/3]

ObjectHandle System._AppDomain.CreateInstance ( string  assemblyName,
string  typeName,
bool  ignoreCase,
BindingFlags  bindingAttr,
Binder  binder,
object []  args,
CultureInfo  culture,
object []  activationAttributes,
Evidence  securityAttributes 
)

Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[],System.Security.Policy.Evidence) method overload.

Parameters
assemblyNameThe display name of the assembly. See P:System.Reflection.Assembly.FullName.
typeNameThe fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property.
ignoreCaseA Boolean value specifying whether to perform a case-sensitive search or not.
bindingAttrA 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.
binderAn 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.
argsThe 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.
cultureCulture-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.
activationAttributesAn 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. The T:System.Runtime.Remoting.Activation.UrlAttribute specifies the URL that is required to activate a remote object.
securityAttributesInformation used to authorize creation of typeName .
Returns
An object that is a wrapper for the new instance specified by typeName . The return value needs to be unwrapped to access the real object.

Implemented in System.AppDomain.

◆ CreateInstanceFrom() [1/3]

ObjectHandle System._AppDomain.CreateInstanceFrom ( string  assemblyFile,
string  typeName 
)

Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(System.String,System.String) method overload.

Parameters
assemblyFileThe 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.
typeNameThe fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property.
Returns
An object that is a wrapper for the new instance, or null if typeName is not found. The return value needs to be unwrapped to access the real object.

Implemented in System.AppDomain.

◆ CreateInstanceFrom() [2/3]

ObjectHandle System._AppDomain.CreateInstanceFrom ( string  assemblyFile,
string  typeName,
object []  activationAttributes 
)

Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(System.String,System.String,System.Object[]) method overload.

Parameters
assemblyFileThe 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.
typeNameThe fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property.
activationAttributesAn 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. The T:System.Runtime.Remoting.Activation.UrlAttribute specifies the URL that is required to activate a remote object.
Returns
An object that is a wrapper for the new instance, or null if typeName is not found. The return value needs to be unwrapped to access the real object.

Implemented in System.AppDomain.

◆ CreateInstanceFrom() [3/3]

ObjectHandle System._AppDomain.CreateInstanceFrom ( string  assemblyFile,
string  typeName,
bool  ignoreCase,
BindingFlags  bindingAttr,
Binder  binder,
object []  args,
CultureInfo  culture,
object []  activationAttributes,
Evidence  securityAttributes 
)

Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(System.String,System.String,System.Boolean,System.Reflection.BindingFlags,System.Reflection.Binder,System.Object[],System.Globalization.CultureInfo,System.Object[],System.Security.Policy.Evidence) method overload.

Parameters
assemblyFileThe 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.
typeNameThe fully qualified name of the requested type, including the namespace but not the assembly, as returned by the P:System.Type.FullName property.
ignoreCaseA Boolean value specifying whether to perform a case-sensitive search or not.
bindingAttrA 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.
binderAn 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.
argsThe 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.
cultureCulture-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.
activationAttributesAn 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. The T:System.Runtime.Remoting.Activation.UrlAttribute specifies the URL that is required to activate a remote object.
securityAttributesInformation used to authorize creation of typeName .
Returns
An object that is a wrapper for the new instance, or null if typeName is not found. The return value needs to be unwrapped to access the real object.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [1/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe access mode for the dynamic assembly.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [2/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
string  dir 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
dirThe name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [3/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
Evidence  evidence 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.Security.Policy.Evidence) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
evidenceThe evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [4/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
PermissionSet  requiredPermissions,
PermissionSet  optionalPermissions,
PermissionSet  refusedPermissions 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
requiredPermissionsThe required permissions request.
optionalPermissionsThe optional permissions request.
refusedPermissionsThe refused permissions request.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [5/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
string  dir,
Evidence  evidence 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
dirThe name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.
evidenceThe evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [6/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
string  dir,
PermissionSet  requiredPermissions,
PermissionSet  optionalPermissions,
PermissionSet  refusedPermissions 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
dirThe name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.
requiredPermissionsThe required permissions request.
optionalPermissionsThe optional permissions request.
refusedPermissionsThe refused permissions request.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [7/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
Evidence  evidence,
PermissionSet  requiredPermissions,
PermissionSet  optionalPermissions,
PermissionSet  refusedPermissions 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
evidenceThe evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.
requiredPermissionsThe required permissions request.
optionalPermissionsThe optional permissions request.
refusedPermissionsThe refused permissions request.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [8/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
string  dir,
Evidence  evidence,
PermissionSet  requiredPermissions,
PermissionSet  optionalPermissions,
PermissionSet  refusedPermissions 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
dirThe name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.
evidenceThe evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.
requiredPermissionsThe required permissions request.
optionalPermissionsThe optional permissions request.
refusedPermissionsThe refused permissions request.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DefineDynamicAssembly() [9/9]

AssemblyBuilder System._AppDomain.DefineDynamicAssembly ( AssemblyName  name,
AssemblyBuilderAccess  access,
string  dir,
Evidence  evidence,
PermissionSet  requiredPermissions,
PermissionSet  optionalPermissions,
PermissionSet  refusedPermissions,
bool  isSynchronized 
)

Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName,System.Reflection.Emit.AssemblyBuilderAccess,System.String,System.Security.Policy.Evidence,System.Security.PermissionSet,System.Security.PermissionSet,System.Security.PermissionSet,System.Boolean) method overload.

Parameters
nameThe unique identity of the dynamic assembly.
accessThe mode in which the dynamic assembly will be accessed.
dirThe name of the directory where the dynamic assembly will be saved. If dir is null, the directory defaults to the current directory.
evidenceThe evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.
requiredPermissionsThe required permissions request.
optionalPermissionsThe optional permissions request.
refusedPermissionsThe refused permissions request.
isSynchronizedtrue to synchronize the creation of modules, types, and members in the dynamic assembly; otherwise, false.
Returns
Represents the dynamic assembly created.

Implemented in System.AppDomain.

◆ DoCallBack()

void System._AppDomain.DoCallBack ( CrossAppDomainDelegate  theDelegate)

Provides COM objects with version-independent access to the M:System.AppDomain.DoCallBack(System.CrossAppDomainDelegate) method.

Parameters
theDelegateA delegate that specifies a method to call.

Implemented in System.AppDomain.

◆ Equals()

new bool System._AppDomain.Equals ( object  other)

Provides COM objects with version-independent access to the inherited M:System.Object.Equals(System.Object) method.

Parameters
otherThe T:System.Object to compare to the current T:System.Object.
Returns
true if the specified T:System.Object is equal to the current T:System.Object; otherwise, false.

◆ ExecuteAssembly() [1/3]

int System._AppDomain.ExecuteAssembly ( string  assemblyFile,
Evidence  assemblySecurity 
)

Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System.String,System.Security.Policy.Evidence) method overload.

Parameters
assemblyFileThe name of the file that contains the assembly to execute.
assemblySecurityEvidence for loading the assembly.
Returns
The value returned by the entry point of the assembly.

Implemented in System.AppDomain.

◆ ExecuteAssembly() [2/3]

int System._AppDomain.ExecuteAssembly ( string  assemblyFile)

Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System.String) method overload.

Parameters
assemblyFileThe name of the file that contains the assembly to execute.
Returns
The value returned by the entry point of the assembly.

Implemented in System.AppDomain.

◆ ExecuteAssembly() [3/3]

int System._AppDomain.ExecuteAssembly ( string  assemblyFile,
Evidence  assemblySecurity,
string []  args 
)

Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System.String,System.Security.Policy.Evidence,System.String[]) method overload.

Parameters
assemblyFileThe name of the file that contains the assembly to execute.
assemblySecurityThe supplied evidence for the assembly.
argsThe arguments to the entry point of the assembly.
Returns
The value returned by the entry point of the assembly.

Implemented in System.AppDomain.

◆ GetAssemblies()

Assembly [] System._AppDomain.GetAssemblies ( )

Provides COM objects with version-independent access to the M:System.AppDomain.GetAssemblies method.

Returns
An array of assemblies in this application domain.

Implemented in System.AppDomain.

◆ GetData()

object System._AppDomain.GetData ( string  name)

Provides COM objects with version-independent access to the M:System.AppDomain.GetData(System.String) method.

Parameters
nameThe name of a predefined application domain property, or the name of an application domain property you have defined.
Returns
The value of the name property.

Implemented in System.AppDomain.

◆ GetHashCode()

new int System._AppDomain.GetHashCode ( )

Provides COM objects with version-independent access to the inherited M:System.Object.GetHashCode method.

Returns
A hash code for the current T:System.Object.

◆ GetIDsOfNames()

void System._AppDomain.GetIDsOfNames ( [In] ref Guid  riid,
IntPtr  rgszNames,
uint  cNames,
uint  lcid,
IntPtr  rgDispId 
)

Maps a set of names to a corresponding set of dispatch identifiers.

Parameters
riidReserved for future use. Must be IID_NULL.
rgszNamesPassed-in array of names to be mapped.
cNamesCount of the names to be mapped.
lcidThe locale context in which to interpret the names.
rgDispIdCaller-allocated array which receives the IDs corresponding to the names.
Exceptions
T:System.NotImplementedExceptionThe method is called late-bound using the COM IDispatch interface.

◆ GetLifetimeService()

object System._AppDomain.GetLifetimeService ( )

Provides COM objects with version-independent access to the inherited M:System.MarshalByRefObject.GetLifetimeService method.

Returns
An object of type T:System.Runtime.Remoting.Lifetime.ILease used to control the lifetime policy for this instance.

◆ GetType()

new Type System._AppDomain.GetType ( )

Provides COM objects with version-independent access to the M:System.AppDomain.GetType method.

Returns
A T:System.Type representing the type of the current instance.

Implemented in System.AppDomain.

◆ GetTypeInfo()

void System._AppDomain.GetTypeInfo ( uint  iTInfo,
uint  lcid,
IntPtr  ppTInfo 
)

Retrieves the type information for an object, which can then be used to get the type information for an interface.

Parameters
iTInfoThe type information to return.
lcidThe locale identifier for the type information.
ppTInfoReceives a pointer to the requested type information object.
Exceptions
T:System.NotImplementedExceptionThe method is called late-bound using the COM IDispatch interface.

◆ GetTypeInfoCount()

void System._AppDomain.GetTypeInfoCount ( out uint  pcTInfo)

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

Parameters
pcTInfoPoints to a location that receives the number of type information interfaces provided by the object.
Exceptions
T:System.NotImplementedExceptionThe method is called late-bound using the COM IDispatch interface.

◆ InitializeLifetimeService()

object System._AppDomain.InitializeLifetimeService ( )

Provides COM objects with version-independent access to the M:System.AppDomain.InitializeLifetimeService method.

Returns
Always null.

Implemented in System.AppDomain.

◆ Invoke()

void System._AppDomain.Invoke ( uint  dispIdMember,
[In] ref Guid  riid,
uint  lcid,
short  wFlags,
IntPtr  pDispParams,
IntPtr  pVarResult,
IntPtr  pExcepInfo,
IntPtr  puArgErr 
)

Provides access to properties and methods exposed by an object.

Parameters
dispIdMemberIdentifies the member.
riidReserved for future use. Must be IID_NULL.
lcidThe locale context in which to interpret arguments.
wFlagsFlags describing the context of the call.
pDispParamsPointer to a structure containing an array of arguments, an array of argument DISPIDs for named arguments, and counts for the number of elements in the arrays.
pVarResultPointer to the location where the result is to be stored.
pExcepInfoPointer to a structure that contains exception information.
puArgErrThe index of the first argument that has an error.
Exceptions
T:System.NotImplementedExceptionThe method is called late-bound using the COM IDispatch interface.

◆ Load() [1/7]

Assembly System._AppDomain.Load ( AssemblyName  assemblyRef)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Reflection.AssemblyName) method overload.

Parameters
assemblyRefAn object that describes the assembly to load.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ Load() [2/7]

Assembly System._AppDomain.Load ( string  assemblyString)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.String) method overload.

Parameters
assemblyStringThe display name of the assembly. See P:System.Reflection.Assembly.FullName.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ Load() [3/7]

Assembly System._AppDomain.Load ( byte []  rawAssembly)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Byte[]) method overload.

Parameters
rawAssemblyAn array of type byte that is a COFF-based image containing an emitted assembly.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ Load() [4/7]

Assembly System._AppDomain.Load ( byte []  rawAssembly,
byte []  rawSymbolStore 
)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Byte[],System.Byte[]) method overload.

Parameters
rawAssemblyAn array of type byte that is a COFF-based image containing an emitted assembly.
rawSymbolStoreAn array of type byte containing the raw bytes representing the symbols for the assembly.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ Load() [5/7]

Assembly System._AppDomain.Load ( byte []  rawAssembly,
byte []  rawSymbolStore,
Evidence  securityEvidence 
)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Byte[],System.Byte[],System.Security.Policy.Evidence) method overload.

Parameters
rawAssemblyAn array of type byte that is a COFF-based image containing an emitted assembly.
rawSymbolStoreAn array of type byte containing the raw bytes representing the symbols for the assembly.
securityEvidenceEvidence for loading the assembly.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ Load() [6/7]

Assembly System._AppDomain.Load ( AssemblyName  assemblyRef,
Evidence  assemblySecurity 
)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.Reflection.AssemblyName,System.Security.Policy.Evidence) method overload.

Parameters
assemblyRefAn object that describes the assembly to load.
assemblySecurityEvidence for loading the assembly.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ Load() [7/7]

Assembly System._AppDomain.Load ( string  assemblyString,
Evidence  assemblySecurity 
)

Provides COM objects with version-independent access to the M:System.AppDomain.Load(System.String,System.Security.Policy.Evidence) method overload.

Parameters
assemblyStringThe display name of the assembly. See P:System.Reflection.Assembly.FullName.
assemblySecurityEvidence for loading the assembly.
Returns
The loaded assembly.

Implemented in System.AppDomain.

◆ SetAppDomainPolicy()

void System._AppDomain.SetAppDomainPolicy ( PolicyLevel  domainPolicy)

Provides COM objects with version-independent access to the M:System.AppDomain.SetAppDomainPolicy(System.Security.Policy.PolicyLevel) method.

Parameters
domainPolicyThe security policy level.

Implemented in System.AppDomain.

◆ SetCachePath()

void System._AppDomain.SetCachePath ( string  s)

Provides COM objects with version-independent access to the M:System.AppDomain.SetCachePath(System.String) method.

Parameters
sThe fully qualified path to the shadow copy location.

Implemented in System.AppDomain.

◆ SetData()

void System._AppDomain.SetData ( string  name,
object  data 
)

Provides COM objects with version-independent access to the M:System.AppDomain.SetData(System.String,System.Object) method.

Parameters
nameThe name of a user-defined application domain property to create or change.
dataThe value of the property.

Implemented in System.AppDomain.

◆ SetPrincipalPolicy()

void System._AppDomain.SetPrincipalPolicy ( PrincipalPolicy  policy)

Provides COM objects with version-independent access to the M:System.AppDomain.SetPrincipalPolicy(System.Security.Principal.PrincipalPolicy) method.

Parameters
policyOne of the T:System.Security.Principal.PrincipalPolicy values that specifies the type of the principal object to attach to threads.

Implemented in System.AppDomain.

◆ SetShadowCopyPath()

void System._AppDomain.SetShadowCopyPath ( string  s)

Provides COM objects with version-independent access to the M:System.AppDomain.SetShadowCopyPath(System.String) method.

Parameters
sA list of directory names, where each name is separated by a semicolon.

Implemented in System.AppDomain.

◆ SetThreadPrincipal()

void System._AppDomain.SetThreadPrincipal ( IPrincipal  principal)

Provides COM objects with version-independent access to the M:System.AppDomain.SetThreadPrincipal(System.Security.Principal.IPrincipal) method.

Parameters
principalThe principal object to attach to threads.

Implemented in System.AppDomain.

◆ ToString()

new string System._AppDomain.ToString ( )

Provides COM objects with version-independent access to the M:System.AppDomain.ToString method.

Returns
A string formed by concatenating the literal string "Name:", the friendly name of the application domain, and either string representations of the context policies or the string "There are no context policies."

Implemented in System.AppDomain.

Property Documentation

◆ BaseDirectory

string System._AppDomain.BaseDirectory
get

Provides COM objects with version-independent access to the P:System.AppDomain.BaseDirectory property.

Returns
The base directory that the assembly resolver uses to probe for assemblies.

Definition at line 36 of file _AppDomain.cs.

◆ DynamicDirectory

string System._AppDomain.DynamicDirectory
get

Provides COM objects with version-independent access to the P:System.AppDomain.DynamicDirectory property.

Returns
Get the directory that the assembly resolver uses to probe for dynamically-created assemblies.

Definition at line 58 of file _AppDomain.cs.

◆ Evidence

Evidence System._AppDomain.Evidence
get

Provides COM objects with version-independent access to the P:System.AppDomain.Evidence property.

Returns
Gets the T:System.Security.Policy.Evidence associated with this application domain that is used as input to the security policy.

Definition at line 22 of file _AppDomain.cs.

◆ FriendlyName

string System._AppDomain.FriendlyName
get

Provides COM objects with version-independent access to the P:System.AppDomain.FriendlyName property.

Returns
The friendly name of this application domain.

Definition at line 29 of file _AppDomain.cs.

◆ RelativeSearchPath

string System._AppDomain.RelativeSearchPath
get

Provides COM objects with version-independent access to the P:System.AppDomain.RelativeSearchPath property.

Returns
The path under the base directory where the assembly resolver should probe for private assemblies.

Definition at line 43 of file _AppDomain.cs.

◆ ShadowCopyFiles

bool System._AppDomain.ShadowCopyFiles
get

Provides COM objects with version-independent access to the P:System.AppDomain.ShadowCopyFiles property.

Returns
true if the application domain is configured to shadow copy files; otherwise, false.

Definition at line 51 of file _AppDomain.cs.

Event Documentation

◆ AssemblyLoad

AssemblyLoadEventHandler System._AppDomain.AssemblyLoad

Provides COM objects with version-independent access to the E:System.AppDomain.AssemblyLoad event.

Definition at line 66 of file _AppDomain.cs.

◆ AssemblyResolve

ResolveEventHandler System._AppDomain.AssemblyResolve

Provides COM objects with version-independent access to the E:System.AppDomain.AssemblyResolve event.

Definition at line 78 of file _AppDomain.cs.

◆ DomainUnload

EventHandler System._AppDomain.DomainUnload

Provides COM objects with version-independent access to the E:System.AppDomain.DomainUnload event.

Definition at line 63 of file _AppDomain.cs.

◆ ProcessExit

EventHandler System._AppDomain.ProcessExit

Provides COM objects with version-independent access to the E:System.AppDomain.ProcessExit event.

Definition at line 69 of file _AppDomain.cs.

◆ ResourceResolve

ResolveEventHandler System._AppDomain.ResourceResolve

Provides COM objects with version-independent access to the E:System.AppDomain.ResourceResolve event.

Definition at line 75 of file _AppDomain.cs.

◆ TypeResolve

ResolveEventHandler System._AppDomain.TypeResolve

Provides COM objects with version-independent access to the E:System.AppDomain.TypeResolve event.

Definition at line 72 of file _AppDomain.cs.

◆ UnhandledException

UnhandledExceptionEventHandler System._AppDomain.UnhandledException

Provides COM objects with version-independent access to the E:System.AppDomain.UnhandledException event.

Definition at line 81 of file _AppDomain.cs.


The documentation for this interface was generated from the following file: