mscorlib(4.0.0.0) API with additions
_Assembly.cs
2 using System.IO;
3 using System.Reflection;
5 using System.Security;
7 
9 {
11  [Guid("17156360-2f1a-384a-bc52-fde93c215c5b")]
12  [InterfaceType(ComInterfaceType.InterfaceIsDual)]
13  [TypeLibImportClass(typeof(Assembly))]
14  [CLSCompliant(false)]
15  [ComVisible(true)]
16  public interface _Assembly
17  {
20  string CodeBase
21  {
22  get;
23  }
24 
27  string EscapedCodeBase
28  {
29  get;
30  }
31 
34  string FullName
35  {
36  get;
37  }
38 
42  {
43  get;
44  }
45 
48  string Location
49  {
50  get;
51  }
52 
56  {
57  get;
58  }
59 
64  {
65  get;
66  }
67 
70 
73  new string ToString();
74 
79  new bool Equals(object other);
80 
83  new int GetHashCode();
84 
87  new Type GetType();
88 
92 
97  AssemblyName GetName(bool copiedName);
98 
102  Type GetType(string name);
103 
109  Type GetType(string name, bool throwOnError);
110 
114 
117  Type[] GetTypes();
118 
123  Stream GetManifestResourceStream(Type type, string name);
124 
128  Stream GetManifestResourceStream(string name);
129 
133  FileStream GetFile(string name);
134 
137  FileStream[] GetFiles();
138 
143  FileStream[] GetFiles(bool getResourceModules);
144 
147  string[] GetManifestResourceNames();
148 
152  ManifestResourceInfo GetManifestResourceInfo(string resourceName);
153 
158  object[] GetCustomAttributes(Type attributeType, bool inherit);
159 
163  object[] GetCustomAttributes(bool inherit);
164 
170  bool IsDefined(Type attributeType, bool inherit);
171 
175  [SecurityCritical]
177 
185  Type GetType(string name, bool throwOnError, bool ignoreCase);
186 
191 
197 
202  Module LoadModule(string moduleName, byte[] rawModule);
203 
209  Module LoadModule(string moduleName, byte[] rawModule, byte[] rawSymbolStore);
210 
214  object CreateInstance(string typeName);
215 
221  object CreateInstance(string typeName, bool ignoreCase);
222 
233  object CreateInstance(string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes);
234 
238 
243  Module[] GetLoadedModules(bool getResourceModules);
244 
247  Module[] GetModules();
248 
253  Module[] GetModules(bool getResourceModules);
254 
258  Module GetModule(string name);
259 
263  }
264 }
Performs reflection on a module.
Definition: Module.cs:17
Assembly GetSatelliteAssembly(CultureInfo culture)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
string FullName
Provides COM objects with version-independent access to the P:System.Reflection.Assembly....
Definition: _Assembly.cs:35
AssemblyName GetName()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
MethodInfo EntryPoint
Provides COM objects with version-independent access to the P:System.Reflection.Assembly....
Definition: _Assembly.cs:42
ManifestResourceInfo GetManifestResourceInfo(string resourceName)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Discovers the attributes of a method and provides access to method metadata.
Definition: MethodInfo.cs:13
FileStream [] GetFiles()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
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
new string ToString()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Describes the source and destination of a given serialized stream, and provides an additional caller-...
new bool Equals(object other)
Provides COM objects with version-independent access to the M:System.Object.Equals(System....
Exposes the public members of the T:System.Reflection.Assembly class to unmanaged code.
Definition: _Assembly.cs:16
new Type GetType()
Provides COM objects with version-independent access to the M:System.Object.GetType method.
Type [] GetExportedTypes()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
string EscapedCodeBase
Provides COM objects with version-independent access to the P:System.Reflection.Assembly....
Definition: _Assembly.cs:28
Type [] GetTypes()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
string Location
Provides COM objects with version-independent access to the P:System.Reflection.Assembly....
Definition: _Assembly.cs:49
object CreateInstance(string typeName)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Module [] GetLoadedModules()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
bool GlobalAssemblyCache
Provides COM objects with version-independent access to the P:System.Reflection.Assembly....
Definition: _Assembly.cs:64
Module LoadModule(string moduleName, byte[] rawModule)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Provides a T:System.IO.Stream for a file, supporting both synchronous and asynchronous read and write...
Definition: FileStream.cs:15
string [] GetManifestResourceNames()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
ModuleResolveEventHandler ModuleResolve
Provides COM objects with version-independent access to the E:System.Reflection.Assembly....
Definition: _Assembly.cs:69
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Definition: Assembly.cs:22
void GetObjectData(SerializationInfo info, StreamingContext context)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Represents type declarations: class types, interface types, array types, value types,...
Definition: Type.cs:18
FileStream GetFile(string name)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Module [] GetModules()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
Represents the version number of an assembly, operating system, or the common language runtime....
Definition: Version.cs:11
Provides access to manifest resources, which are XML files that describe application dependencies.
Selects a member from a list of candidates, and performs type conversion from actual argument type to...
Definition: Binder.cs:10
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
Describes an assembly's unique identity in full.
Definition: AssemblyName.cs:19
string CodeBase
Provides COM objects with version-independent access to the P:System.Reflection.Assembly....
Definition: _Assembly.cs:21
Stream GetManifestResourceStream(Type type, string name)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
ComInterfaceType
Identifies how to expose an interface to COM.
Defines the set of information that constitutes input to security policy decisions....
Definition: Evidence.cs:17
Module GetModule(string name)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
object [] GetCustomAttributes(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
new int GetHashCode()
Provides COM objects with version-independent access to the M:System.Object.GetHashCode method.
Provides information about a specific culture (called a locale for unmanaged code development)....
Definition: CultureInfo.cs:16
bool IsDefined(Type attributeType, bool inherit)
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
AssemblyName [] GetReferencedAssemblies()
Provides COM objects with version-independent access to the M:System.Reflection.Assembly....
delegate Module ModuleResolveEventHandler(object sender, ResolveEventArgs e)
Represents the method that will handle the E:System.Reflection.Assembly.ModuleResolve event of an T:S...
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....
Definition: Stream.cs:16