mscorlib(4.0.0.0) API with additions
_AppDomain.cs
2 using System.Reflection;
6 using System.Security;
9 
10 namespace System
11 {
13  [Guid("05F696DC-2B29-3663-AD8B-C4389CF2A713")]
14  [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
15  [CLSCompliant(false)]
16  [ComVisible(true)]
17  public interface _AppDomain
18  {
22  {
23  get;
24  }
25 
28  string FriendlyName
29  {
30  get;
31  }
32 
35  string BaseDirectory
36  {
37  get;
38  }
39 
42  string RelativeSearchPath
43  {
44  get;
45  }
46 
50  bool ShadowCopyFiles
51  {
52  get;
53  }
54 
57  string DynamicDirectory
58  {
59  get;
60  }
61 
64 
67 
70 
73 
76 
79 
82 
86  void GetTypeInfoCount(out uint pcTInfo);
87 
93  void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
94 
102  void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
103 
114  void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
115 
118  new string ToString();
119 
124  new bool Equals(object other);
125 
128  new int GetHashCode();
129 
132  new Type GetType();
133 
136  [SecurityCritical]
137  object InitializeLifetimeService();
138 
141  [SecurityCritical]
142  object GetLifetimeService();
143 
149 
156 
163 
171  AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);
172 
180 
189  AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);
190 
199  AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);
200 
210  AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions);
211 
223  AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access, string dir, Evidence evidence, PermissionSet requiredPermissions, PermissionSet optionalPermissions, PermissionSet refusedPermissions, bool isSynchronized);
224 
229  ObjectHandle CreateInstance(string assemblyName, string typeName);
230 
235  ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName);
236 
242  ObjectHandle CreateInstance(string assemblyName, string typeName, object[] activationAttributes);
243 
249  ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, object[] activationAttributes);
250 
262  ObjectHandle CreateInstance(string assemblyName, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes);
263 
275  ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes, Evidence securityAttributes);
276 
280  Assembly Load(AssemblyName assemblyRef);
281 
285  Assembly Load(string assemblyString);
286 
290  Assembly Load(byte[] rawAssembly);
291 
296  Assembly Load(byte[] rawAssembly, byte[] rawSymbolStore);
297 
303  Assembly Load(byte[] rawAssembly, byte[] rawSymbolStore, Evidence securityEvidence);
304 
309  Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity);
310 
315  Assembly Load(string assemblyString, Evidence assemblySecurity);
316 
321  int ExecuteAssembly(string assemblyFile, Evidence assemblySecurity);
322 
326  int ExecuteAssembly(string assemblyFile);
327 
333  int ExecuteAssembly(string assemblyFile, Evidence assemblySecurity, string[] args);
334 
338 
341  [SecurityCritical]
342  void AppendPrivatePath(string path);
343 
345  [SecurityCritical]
346  void ClearPrivatePath();
347 
350  [SecurityCritical]
351  void SetShadowCopyPath(string s);
352 
354  [SecurityCritical]
355  void ClearShadowCopyPath();
356 
359  [SecurityCritical]
360  void SetCachePath(string s);
361 
365  [SecurityCritical]
366  void SetData(string name, object data);
367 
371  object GetData(string name);
372 
375  [SecurityCritical]
376  void SetAppDomainPolicy(PolicyLevel domainPolicy);
377 
380  void SetThreadPrincipal(IPrincipal principal);
381 
384  void SetPrincipalPolicy(PrincipalPolicy policy);
385 
388  void DoCallBack(CrossAppDomainDelegate theDelegate);
389  }
390 }
void SetPrincipalPolicy(PrincipalPolicy policy)
Provides COM objects with version-independent access to the M:System.AppDomain.SetPrincipalPolicy(Sys...
new int GetHashCode()
Provides COM objects with version-independent access to the inherited M:System.Object....
void GetTypeInfoCount(out uint pcTInfo)
Retrieves the number of type information interfaces that an object provides (either 0 or 1).
ResolveEventHandler ResourceResolve
Provides COM objects with version-independent access to the E:System.AppDomain.ResourceResolve event.
Definition: _AppDomain.cs:75
Defines the basic functionality of a principal object.
Definition: IPrincipal.cs:8
Represents the security policy levels for the common language runtime. This class cannot be inherited...
Definition: PolicyLevel.cs:15
void ClearPrivatePath()
Provides COM objects with version-independent access to the M:System.AppDomain.ClearPrivatePath metho...
string BaseDirectory
Provides COM objects with version-independent access to the P:System.AppDomain.BaseDirectory property...
Definition: _AppDomain.cs:36
BindingFlags
Specifies flags that control binding and the way in which the search for members and types is conduct...
Definition: BindingFlags.cs:10
Definition: __Canon.cs:3
Defines and represents a dynamic assembly.
string FriendlyName
Provides COM objects with version-independent access to the P:System.AppDomain.FriendlyName property.
Definition: _AppDomain.cs:29
AssemblyBuilderAccess
Defines the access modes for a dynamic assembly.
Assembly Load(AssemblyName assemblyRef)
Provides COM objects with version-independent access to the M:System.AppDomain.Load(System....
delegate void CrossAppDomainDelegate()
Used by M:System.AppDomain.DoCallBack(System.CrossAppDomainDelegate) for cross-application domain cal...
object GetData(string name)
Provides COM objects with version-independent access to the M:System.AppDomain.GetData(System....
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 ...
ResolveEventHandler AssemblyResolve
Provides COM objects with version-independent access to the E:System.AppDomain.AssemblyResolve event.
Definition: _AppDomain.cs:78
ResolveEventHandler TypeResolve
Provides COM objects with version-independent access to the E:System.AppDomain.TypeResolve event.
Definition: _AppDomain.cs:72
Represents a globally unique identifier (GUID).To browse the .NET Framework source code for this type...
Definition: Guid.cs:14
void SetThreadPrincipal(IPrincipal principal)
Provides COM objects with version-independent access to the M:System.AppDomain.SetThreadPrincipal(Sys...
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.
Represents a collection that can contain many different types of permissions.
object InitializeLifetimeService()
Provides COM objects with version-independent access to the M:System.AppDomain.InitializeLifetimeServ...
delegate void EventHandler(object sender, EventArgs e)
Represents the method that will handle an event that has no event data.
PrincipalPolicy
Specifies how principal and identity objects should be created for an application domain....
new bool Equals(object other)
Provides COM objects with version-independent access to the inherited M:System.Object....
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Definition: Assembly.cs:22
delegate void AssemblyLoadEventHandler(object sender, AssemblyLoadEventArgs args)
Represents the method that handles the E:System.AppDomain.AssemblyLoad event of an T:System....
A platform-specific type that is used to represent a pointer or a handle.
Definition: IntPtr.cs:14
void SetData(string name, object data)
Provides COM objects with version-independent access to the M:System.AppDomain.SetData(System....
AssemblyLoadEventHandler AssemblyLoad
Provides COM objects with version-independent access to the E:System.AppDomain.AssemblyLoad event.
Definition: _AppDomain.cs:66
void DoCallBack(CrossAppDomainDelegate theDelegate)
Provides COM objects with version-independent access to the M:System.AppDomain.DoCallBack(System....
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
Wraps marshal-by-value object references, allowing them to be returned through an indirection.
Definition: ObjectHandle.cs:10
ObjectHandle CreateInstanceFrom(string assemblyFile, string typeName)
Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstanceFrom(Sys...
void SetCachePath(string s)
Provides COM objects with version-independent access to the M:System.AppDomain.SetCachePath(System....
string RelativeSearchPath
Provides COM objects with version-independent access to the P:System.AppDomain.RelativeSearchPath pro...
Definition: _AppDomain.cs:43
Exposes the public members of the T:System.AppDomain class to unmanaged code.
Definition: _AppDomain.cs:17
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Definition: Binder.cs:10
delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e)
Represents the method that will handle the event raised by an exception that is not handled by the ap...
Describes an assembly's unique identity in full.
Definition: AssemblyName.cs:19
void SetAppDomainPolicy(PolicyLevel domainPolicy)
Provides COM objects with version-independent access to the M:System.AppDomain.SetAppDomainPolicy(Sys...
object GetLifetimeService()
Provides COM objects with version-independent access to the inherited M:System.MarshalByRefObject....
new string ToString()
Provides COM objects with version-independent access to the M:System.AppDomain.ToString method.
ComInterfaceType
Identifies how to expose an interface to COM.
string DynamicDirectory
Provides COM objects with version-independent access to the P:System.AppDomain.DynamicDirectory prope...
Definition: _AppDomain.cs:58
Defines the set of information that constitutes input to security policy decisions....
Definition: Evidence.cs:17
bool ShadowCopyFiles
Provides COM objects with version-independent access to the P:System.AppDomain.ShadowCopyFiles proper...
Definition: _AppDomain.cs:51
Assembly [] GetAssemblies()
Provides COM objects with version-independent access to the M:System.AppDomain.GetAssemblies method.
int ExecuteAssembly(string assemblyFile, Evidence assemblySecurity)
Provides COM objects with version-independent access to the M:System.AppDomain.ExecuteAssembly(System...
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition: CultureInfo.cs:16
void AppendPrivatePath(string path)
Provides COM objects with version-independent access to the M:System.AppDomain.AppendPrivatePath(Syst...
void ClearShadowCopyPath()
Provides COM objects with version-independent access to the M:System.AppDomain.ClearShadowCopyPath me...
EventHandler DomainUnload
Provides COM objects with version-independent access to the E:System.AppDomain.DomainUnload event.
Definition: _AppDomain.cs:63
EventHandler ProcessExit
Provides COM objects with version-independent access to the E:System.AppDomain.ProcessExit event.
Definition: _AppDomain.cs:69
UnhandledExceptionEventHandler UnhandledException
Provides COM objects with version-independent access to the E:System.AppDomain.UnhandledException eve...
Definition: _AppDomain.cs:81
AssemblyBuilder DefineDynamicAssembly(AssemblyName name, AssemblyBuilderAccess access)
Provides COM objects with version-independent access to the M:System.AppDomain.DefineDynamicAssembly(...
delegate Assembly ResolveEventHandler(object sender, ResolveEventArgs args)
Represents a method that handles the E:System.AppDomain.TypeResolve, E:System.AppDomain....
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.
void SetShadowCopyPath(string s)
Provides COM objects with version-independent access to the M:System.AppDomain.SetShadowCopyPath(Syst...
ObjectHandle CreateInstance(string assemblyName, string typeName)
Provides COM objects with version-independent access to the M:System.AppDomain.CreateInstance(System....
new Type GetType()
Provides COM objects with version-independent access to the M:System.AppDomain.GetType method.