mscorlib(4.0.0.0) API with additions
|
Represents an assembly, which is a reusable, versionable, and self-describing building block of a common language runtime application. More...
Public Member Functions | |
override bool | Equals (object o) |
Determines whether this assembly and the specified object are equal. More... | |
override int | GetHashCode () |
Returns the hash code for this instance. More... | |
virtual AssemblyName | GetName () |
Gets an T:System.Reflection.AssemblyName for this assembly. More... | |
virtual AssemblyName | GetName (bool copiedName) |
Gets an T:System.Reflection.AssemblyName for this assembly, setting the codebase as specified by copiedName . More... | |
virtual Type | GetType (string name) |
Gets the T:System.Type object with the specified name in the assembly instance. More... | |
virtual Type | GetType (string name, bool throwOnError) |
Gets the T:System.Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found. More... | |
virtual Type | GetType (string name, bool throwOnError, bool ignoreCase) |
Gets the T:System.Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found. More... | |
virtual Type [] | GetExportedTypes () |
Gets the public types defined in this assembly that are visible outside the assembly. More... | |
virtual Type [] | GetTypes () |
Gets the types defined in this assembly. More... | |
virtual Stream | GetManifestResourceStream (Type type, string name) |
Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly. More... | |
virtual Stream | GetManifestResourceStream (string name) |
Loads the specified manifest resource from this assembly. More... | |
virtual Assembly | GetSatelliteAssembly (CultureInfo culture) |
Gets the satellite assembly for the specified culture. More... | |
virtual Assembly | GetSatelliteAssembly (CultureInfo culture, Version version) |
Gets the specified version of the satellite assembly for the specified culture. More... | |
virtual void | GetObjectData (SerializationInfo info, StreamingContext context) |
Gets serialization information with all of the data needed to reinstantiate this assembly. More... | |
virtual object [] | GetCustomAttributes (bool inherit) |
Gets all the custom attributes for this assembly. More... | |
virtual object [] | GetCustomAttributes (Type attributeType, bool inherit) |
Gets the custom attributes for this assembly as specified by type. More... | |
virtual bool | IsDefined (Type attributeType, bool inherit) |
Indicates whether or not a specified attribute has been applied to the assembly. More... | |
virtual IList< CustomAttributeData > | GetCustomAttributesData () |
Returns information about the attributes that have been applied to the current T:System.Reflection.Assembly, expressed as T:System.Reflection.CustomAttributeData objects. More... | |
Module | LoadModule (string moduleName, byte[] rawModule) |
Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file. More... | |
virtual Module | LoadModule (string moduleName, byte[] rawModule, byte[] rawSymbolStore) |
Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file. The raw bytes representing the symbols for the module are also loaded. More... | |
object | CreateInstance (string typeName) |
Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search. More... | |
object | CreateInstance (string typeName, bool ignoreCase) |
Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search. More... | |
virtual object | CreateInstance (string typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, object[] args, CultureInfo culture, object[] activationAttributes) |
Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes. More... | |
Module [] | GetLoadedModules () |
Gets all the loaded modules that are part of this assembly. More... | |
virtual Module [] | GetLoadedModules (bool getResourceModules) |
Gets all the loaded modules that are part of this assembly, specifying whether to include resource modules. More... | |
Module [] | GetModules () |
Gets all the modules that are part of this assembly. More... | |
virtual Module [] | GetModules (bool getResourceModules) |
Gets all the modules that are part of this assembly, specifying whether to include resource modules. More... | |
virtual Module | GetModule (string name) |
Gets the specified module in this assembly. More... | |
virtual FileStream | GetFile (string name) |
Gets a T:System.IO.FileStream for the specified file in the file table of the manifest of this assembly. More... | |
virtual FileStream [] | GetFiles () |
Gets the files in the file table of an assembly manifest. More... | |
virtual FileStream [] | GetFiles (bool getResourceModules) |
Gets the files in the file table of an assembly manifest, specifying whether to include resource modules. More... | |
virtual string [] | GetManifestResourceNames () |
Returns the names of all the resources in this assembly. More... | |
virtual AssemblyName [] | GetReferencedAssemblies () |
Gets the T:System.Reflection.AssemblyName objects for all the assemblies referenced by this assembly. More... | |
virtual ManifestResourceInfo | GetManifestResourceInfo (string resourceName) |
Returns information about how the given resource has been persisted. More... | |
override string | ToString () |
Returns the full name of the assembly, also known as the display name. More... | |
Static Public Member Functions | |
static string | CreateQualifiedName (string assemblyName, string typeName) |
Creates the name of a type qualified by the display name of its assembly. More... | |
static Assembly | GetAssembly (Type type) |
Gets the currently loaded assembly in which the specified type is defined. More... | |
static bool | operator== (Assembly left, Assembly right) |
Indicates whether two T:System.Reflection.Assembly objects are equal. More... | |
static bool | operator != (Assembly left, Assembly right) |
Indicates whether two T:System.Reflection.Assembly objects are not equal. More... | |
static Assembly | LoadFrom (string assemblyFile) |
Loads an assembly given its file name or path. More... | |
static Assembly | ReflectionOnlyLoadFrom (string assemblyFile) |
Loads an assembly into the reflection-only context, given its path. More... | |
static Assembly | LoadFrom (string assemblyFile, Evidence securityEvidence) |
Loads an assembly given its file name or path and supplying security evidence. More... | |
static Assembly | LoadFrom (string assemblyFile, Evidence securityEvidence, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) |
Loads an assembly given its file name or path, security evidence, hash value, and hash algorithm. More... | |
static Assembly | LoadFrom (string assemblyFile, byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) |
Loads an assembly given its file name or path, hash value, and hash algorithm. More... | |
static Assembly | UnsafeLoadFrom (string assemblyFile) |
Loads an assembly into the load-from context, bypassing some security checks. More... | |
static Assembly | Load (string assemblyString) |
Loads an assembly given the long form of its name. More... | |
static Assembly | ReflectionOnlyLoad (string assemblyString) |
Loads an assembly into the reflection-only context, given its display name. More... | |
static Assembly | Load (string assemblyString, Evidence assemblySecurity) |
Loads an assembly given its display name, loading the assembly into the domain of the caller using the supplied evidence. More... | |
static Assembly | Load (AssemblyName assemblyRef) |
Loads an assembly given its T:System.Reflection.AssemblyName. More... | |
static Assembly | Load (AssemblyName assemblyRef, Evidence assemblySecurity) |
Loads an assembly given its T:System.Reflection.AssemblyName. The assembly is loaded into the domain of the caller using the supplied evidence. More... | |
static Assembly | LoadWithPartialName (string partialName) |
Loads an assembly from the application directory or from the global assembly cache using a partial name. More... | |
static Assembly | LoadWithPartialName (string partialName, Evidence securityEvidence) |
Loads an assembly from the application directory or from the global assembly cache using a partial name. The assembly is loaded into the domain of the caller using the supplied evidence. More... | |
static Assembly | Load (byte[] rawAssembly) |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the application domain of the caller. More... | |
static Assembly | ReflectionOnlyLoad (byte[] rawAssembly) |
Loads the assembly from a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the reflection-only context of the caller's application domain. More... | |
static Assembly | Load (byte[] rawAssembly, byte[] rawSymbolStore) |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols for the assembly. The assembly is loaded into the application domain of the caller. More... | |
static Assembly | Load (byte[] rawAssembly, byte[] rawSymbolStore, SecurityContextSource securityContextSource) |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and specifying the source for the security context. The assembly is loaded into the application domain of the caller. More... | |
static Assembly | Load (byte[] rawAssembly, byte[] rawSymbolStore, Evidence securityEvidence) |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and evidence for the assembly. The assembly is loaded into the application domain of the caller. More... | |
static Assembly | LoadFile (string path) |
Loads the contents of an assembly file on the specified path. More... | |
static Assembly | LoadFile (string path, Evidence securityEvidence) |
Loads an assembly given its path, loading the assembly into the domain of the caller using the supplied evidence. More... | |
static Assembly | GetExecutingAssembly () |
Gets the assembly that contains the code that is currently executing. More... | |
static Assembly | GetCallingAssembly () |
Returns the T:System.Reflection.Assembly of the method that invoked the currently executing method. More... | |
static Assembly | GetEntryAssembly () |
Gets the process executable in the default application domain. In other application domains, this is the first executable that was executed by M:System.AppDomain.ExecuteAssembly(System.String). More... | |
Properties | |
virtual string | CodeBase [get] |
Gets the location of the assembly as specified originally, for example, in an T:System.Reflection.AssemblyName object. More... | |
virtual string | EscapedCodeBase [get] |
Gets the URI, including escape characters, that represents the codebase. More... | |
virtual string | FullName [get] |
Gets the display name of the assembly. More... | |
virtual MethodInfo | EntryPoint [get] |
Gets the entry point of this assembly. More... | |
virtual IEnumerable< Type > | ExportedTypes [get] |
Gets a collection of the public types defined in this assembly that are visible outside the assembly. More... | |
virtual IEnumerable< TypeInfo > | DefinedTypes [get] |
Gets a collection of the types defined in this assembly. More... | |
virtual Evidence | Evidence [get] |
Gets the evidence for this assembly. More... | |
virtual PermissionSet | PermissionSet [get] |
Gets the grant set of the current assembly. More... | |
bool | IsFullyTrusted [get] |
Gets a value that indicates whether the current assembly is loaded with full trust. More... | |
virtual SecurityRuleSet | SecurityRuleSet [get] |
Gets a value that indicates which set of security rules the common language runtime (CLR) enforces for this assembly. More... | |
virtual Module | ManifestModule [get] |
Gets the module that contains the manifest for the current assembly. More... | |
virtual IEnumerable< CustomAttributeData > | CustomAttributes [get] |
Gets a collection that contains this assembly's custom attributes. More... | |
virtual bool | ReflectionOnly [get] |
Gets a T:System.Boolean value indicating whether this assembly was loaded into the reflection-only context. More... | |
virtual IEnumerable< Module > | Modules [get] |
Gets a collection that contains the modules in this assembly. More... | |
virtual string | Location [get] |
Gets the full path or UNC location of the loaded file that contains the manifest. More... | |
virtual string | ImageRuntimeVersion [get] |
Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest. More... | |
virtual bool | GlobalAssemblyCache [get] |
Gets a value indicating whether the assembly was loaded from the global assembly cache. More... | |
virtual long | HostContext [get] |
Gets the host context with which the assembly was loaded. More... | |
virtual bool | IsDynamic [get] |
Gets a value that indicates whether the current assembly was generated dynamically in the current process by using reflection emit. More... | |
virtual ModuleResolveEventHandler | ModuleResolve |
Occurs when the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means. More... | |
![]() | |
string | CodeBase [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.CodeBase property. More... | |
string | EscapedCodeBase [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.EscapedCodeBase property. More... | |
string | FullName [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.FullName property. More... | |
MethodInfo | EntryPoint [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.EntryPoint property. More... | |
string | Location [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.Location property. More... | |
Evidence | Evidence [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.Evidence property. More... | |
bool | GlobalAssemblyCache [get] |
Provides COM objects with version-independent access to the P:System.Reflection.Assembly.GlobalAssemblyCache property. More... | |
![]() | |
Evidence | Evidence [get] |
Gets T:System.Security.Policy.Evidence that verifies the current object's identity. More... | |
Additional Inherited Members | |
![]() | |
ModuleResolveEventHandler | ModuleResolve |
Provides COM objects with version-independent access to the E:System.Reflection.Assembly.ModuleResolve event. More... | |
Represents an assembly, which is a reusable, versionable, and self-describing building block of a common language runtime application.
Definition at line 22 of file Assembly.cs.
object System.Reflection.Assembly.CreateInstance | ( | string | typeName | ) |
Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search.
typeName | The P:System.Type.FullName of the type to locate. |
null
if typeName is not found. The type is resolved using the default binder, without specifying culture or activation attributes, and with T:System.Reflection.BindingFlags set to Public
or Instance
. T:System.ArgumentException | typeName is an empty string ("") or a string beginning with a null character.-or-The current assembly was loaded into the reflection-only context. |
T:System.ArgumentNullException | typeName is null . |
T:System.MissingMethodException | No matching constructor was found. |
T:System.IO.FileNotFoundException | typeName requires a dependent assembly that could not be found. |
T:System.IO.FileLoadException | typeName requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and typeName requires a dependent assembly that was not preloaded. |
T:System.BadImageFormatException | typeName requires a dependent assembly, but the file is not a valid assembly. -or- typeName requires a dependent assembly that was compiled for a version of the runtime that is later than the currently loaded version. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1130 of file Assembly.cs.
object System.Reflection.Assembly.CreateInstance | ( | string | typeName, |
bool | ignoreCase | ||
) |
Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search.
typeName | The P:System.Type.FullName of the type to locate. |
ignoreCase | true to ignore the case of the type name; otherwise, false . |
null
if typeName is not found. The type is resolved using the default binder, without specifying culture or activation attributes, and with T:System.Reflection.BindingFlags set to Public
or Instance
.T:System.ArgumentException | typeName is an empty string ("") or a string beginning with a null character. -or-The current assembly was loaded into the reflection-only context. |
T:System.MissingMethodException | No matching constructor was found. |
T:System.ArgumentNullException | typeName is null . |
T:System.IO.FileNotFoundException | typeName requires a dependent assembly that could not be found. |
T:System.IO.FileLoadException | typeName requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and typeName requires a dependent assembly that was not preloaded. |
T:System.BadImageFormatException | typeName requires a dependent assembly, but the file is not a valid assembly. -or- typeName requires a dependent assembly that was compiled for a version of the runtime that is later than the currently loaded version. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1152 of file Assembly.cs.
|
virtual |
Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search and having the specified culture, arguments, and binding and activation attributes.
typeName | The P:System.Type.FullName of the type to locate. |
ignoreCase | true to ignore the case of the type name; otherwise, false . |
bindingAttr | A bitmask that affects the way in which the search is conducted. The value is a combination of bit flags from T:System.Reflection.BindingFlags. |
binder | An object that enables the binding, coercion of argument types, invocation of members, and retrieval of MemberInfo objects via reflection. If binder is null , the default binder is used. |
args | An array that contains the arguments to be passed to the constructor. This array of arguments must match in number, order, and type the parameters of the constructor to be invoked. If the default constructor is desired, args must be an empty array or null . |
culture | An instance of CultureInfo used to govern the coercion of types. If this is null , the CultureInfo for the current thread is used. (This is necessary to convert a String that represents 1000 to a Double value, for example, since 1000 is represented differently by different cultures.) |
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 supplied arguments are used to resolve the type, and to bind the constructor that is used to create the instance.T:System.ArgumentException | typeName is an empty string ("") or a string beginning with a null character. -or-The current assembly was loaded into the reflection-only context. |
T:System.ArgumentNullException | typeName is null . |
T:System.MissingMethodException | No matching constructor was found. |
T:System.NotSupportedException | A non-empty activation attributes array is passed to a type that does not inherit from T:System.MarshalByRefObject. |
T:System.IO.FileNotFoundException | typeName requires a dependent assembly that could not be found. |
T:System.IO.FileLoadException | typeName requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and typeName requires a dependent assembly that was not preloaded. |
T:System.BadImageFormatException | typeName requires a dependent assembly, but the file is not a valid assembly. -or- typeName requires a dependent assembly which that was compiled for a version of the runtime that is later than the currently loaded version. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1180 of file Assembly.cs.
|
static |
Creates the name of a type qualified by the display name of its assembly.
assemblyName | The display name of an assembly. |
typeName | The full name of a type. |
Definition at line 282 of file Assembly.cs.
override bool System.Reflection.Assembly.Equals | ( | object | o | ) |
Determines whether this assembly and the specified object are equal.
o | The object to compare with this instance. |
true
if o is equal to this instance; otherwise, false
.Implements System.Runtime.InteropServices._Assembly.
Definition at line 341 of file Assembly.cs.
Gets the currently loaded assembly in which the specified type is defined.
type | An object representing a type in the assembly that will be returned. |
T:System.ArgumentNullException | type is null . |
Definition at line 292 of file Assembly.cs.
|
static |
Returns the T:System.Reflection.Assembly of the method that invoked the currently executing method.
Assembly
object of the method that invoked the currently executing method.Definition at line 810 of file Assembly.cs.
|
virtual |
Gets all the custom attributes for this assembly.
inherit | This argument is ignored for objects of type T:System.Reflection.Assembly. |
Implements System.Reflection.ICustomAttributeProvider.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1041 of file Assembly.cs.
|
virtual |
Gets the custom attributes for this assembly as specified by type.
attributeType | The type for which the custom attributes are to be returned. |
inherit | This argument is ignored for objects of type T:System.Reflection.Assembly. |
T:System.ArgumentNullException | attributeType is null . |
T:System.ArgumentException | attributeType is not a runtime type. |
Implements System.Reflection.ICustomAttributeProvider.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1055 of file Assembly.cs.
|
virtual |
Returns information about the attributes that have been applied to the current T:System.Reflection.Assembly, expressed as T:System.Reflection.CustomAttributeData objects.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1077 of file Assembly.cs.
|
static |
Gets the process executable in the default application domain. In other application domains, this is the first executable that was executed by M:System.AppDomain.ExecuteAssembly(System.String).
null
when called from unmanaged code.Definition at line 819 of file Assembly.cs.
|
static |
Gets the assembly that contains the code that is currently executing.
Definition at line 799 of file Assembly.cs.
|
virtual |
Gets the public types defined in this assembly that are visible outside the assembly.
T:System.NotSupportedException | The assembly is a dynamic assembly. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 932 of file Assembly.cs.
|
virtual |
Gets a T:System.IO.FileStream for the specified file in the file table of the manifest of this assembly.
name | The name of the specified file. Do not include the path to the file. |
null
if the file is not found.T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.ArgumentNullException | The name parameter is null . |
T:System.ArgumentException | The name parameter is an empty string (""). |
T:System.IO.FileNotFoundException | name was not found. |
T:System.BadImageFormatException | name is not a valid assembly. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1249 of file Assembly.cs.
|
virtual |
Gets the files in the file table of an assembly manifest.
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.IO.FileNotFoundException | A file was not found. |
T:System.BadImageFormatException | A file was not a valid assembly. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1259 of file Assembly.cs.
|
virtual |
Gets the files in the file table of an assembly manifest, specifying whether to include resource modules.
getResourceModules | true to include resource modules; otherwise, false . |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.IO.FileNotFoundException | A file was not found. |
T:System.BadImageFormatException | A file was not a valid assembly. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1271 of file Assembly.cs.
override int System.Reflection.Assembly.GetHashCode | ( | ) |
Returns the hash code for this instance.
Implements System.Runtime.InteropServices._Assembly.
Definition at line 349 of file Assembly.cs.
Module [] System.Reflection.Assembly.GetLoadedModules | ( | ) |
Gets all the loaded modules that are part of this assembly.
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1192 of file Assembly.cs.
|
virtual |
Gets all the loaded modules that are part of this assembly, specifying whether to include resource modules.
getResourceModules | true to include resource modules; otherwise, false . |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1201 of file Assembly.cs.
|
virtual |
Returns information about how the given resource has been persisted.
resourceName | The case-sensitive name of the resource. |
null
if the resource is not found.T:System.ArgumentNullException | resourceName is null . |
T:System.ArgumentException | The resourceName parameter is an empty string (""). |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1298 of file Assembly.cs.
|
virtual |
Returns the names of all the resources in this assembly.
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1279 of file Assembly.cs.
|
virtual |
Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.
type | The type whose namespace is used to scope the manifest resource name. |
name | The case-sensitive name of the manifest resource being requested. |
null
if no resources were specified during compilation or if the resource is not visible to the caller.T:System.ArgumentNullException | The name parameter is null . |
T:System.ArgumentException | The name parameter is an empty string (""). |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.IO.FileNotFoundException | name was not found. |
T:System.BadImageFormatException | name is not a valid assembly. |
T:System.NotImplementedException | Resource length is greater than F:System.Int64.MaxValue. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 976 of file Assembly.cs.
|
virtual |
Loads the specified manifest resource from this assembly.
name | The case-sensitive name of the manifest resource being requested. |
null
if no resources were specified during compilation or if the resource is not visible to the caller.T:System.ArgumentNullException | The name parameter is null . |
T:System.ArgumentException | The name parameter is an empty string (""). |
T:System.IO.FileLoadException | In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, T:System.IO.IOException, instead.A file that was found could not be loaded. |
T:System.IO.FileNotFoundException | name was not found. |
T:System.BadImageFormatException | name is not a valid assembly. |
T:System.NotImplementedException | Resource length is greater than F:System.Int64.MaxValue. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 994 of file Assembly.cs.
|
virtual |
Gets the specified module in this assembly.
name | The name of the module being requested. |
null
if the module is not found.T:System.ArgumentNullException | The name parameter is null . |
T:System.ArgumentException | The name parameter is an empty string (""). |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.IO.FileNotFoundException | name was not found. |
T:System.BadImageFormatException | name is not a valid assembly. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1234 of file Assembly.cs.
Module [] System.Reflection.Assembly.GetModules | ( | ) |
Gets all the modules that are part of this assembly.
T:System.IO.FileNotFoundException | The module to be loaded does not specify a file name extension. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1210 of file Assembly.cs.
|
virtual |
Gets all the modules that are part of this assembly, specifying whether to include resource modules.
getResourceModules | true to include resource modules; otherwise, false . |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1219 of file Assembly.cs.
|
virtual |
Gets an T:System.Reflection.AssemblyName for this assembly.
Implements System.Runtime.InteropServices._Assembly.
Definition at line 832 of file Assembly.cs.
|
virtual |
Gets an T:System.Reflection.AssemblyName for this assembly, setting the codebase as specified by copiedName .
copiedName | true to set the P:System.Reflection.Assembly.CodeBase to the location of the assembly after it was shadow copied; false to set P:System.Reflection.Assembly.CodeBase to the original location. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 841 of file Assembly.cs.
|
virtual |
Gets serialization information with all of the data needed to reinstantiate this assembly.
info | The object to be populated with serialization information. |
context | The destination context of the serialization. |
T:System.ArgumentNullException | info is null . |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1032 of file Assembly.cs.
|
virtual |
Gets the T:System.Reflection.AssemblyName objects for all the assemblies referenced by this assembly.
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1286 of file Assembly.cs.
|
virtual |
Gets the satellite assembly for the specified culture.
culture | The specified culture. |
T:System.ArgumentNullException | culture is null . |
T:System.IO.FileNotFoundException | The assembly cannot be found. |
T:System.IO.FileLoadException | The satellite assembly with a matching file name was found, but the CultureInfo did not match the one specified. |
T:System.BadImageFormatException | The satellite assembly is not a valid assembly. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1007 of file Assembly.cs.
|
virtual |
Gets the specified version of the satellite assembly for the specified culture.
culture | The specified culture. |
version | The version of the satellite assembly. |
T:System.ArgumentNullException | culture is null . |
T:System.IO.FileLoadException | The satellite assembly with a matching file name was found, but the CultureInfo or the version did not match the one specified. |
T:System.IO.FileNotFoundException | The assembly cannot be found. |
T:System.BadImageFormatException | The satellite assembly is not a valid assembly. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1021 of file Assembly.cs.
|
virtual |
Gets the T:System.Type object with the specified name in the assembly instance.
name | The full name of the type. |
null
if the class is not found.T:System.ArgumentException | name is invalid. |
T:System.ArgumentNullException | name is null . |
T:System.IO.FileNotFoundException | name |
requires a dependent assembly that could not be found.
T:System.IO.FileLoadException | In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, T:System.IO.IOException, instead. name requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and name requires a dependent assembly that was not preloaded. |
T:System.BadImageFormatException | name requires a dependent assembly, but the file is not a valid assembly. -or- name requires a dependent assembly which was compiled for a version of the runtime later than the currently loaded version. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 871 of file Assembly.cs.
|
virtual |
Gets the T:System.Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found.
name | The full name of the type. |
throwOnError | true to throw an exception if the type is not found; false to return null . |
T:System.ArgumentException | name is invalid.-or- The length of name exceeds 1024 characters. |
T:System.ArgumentNullException | name is null . |
T:System.TypeLoadException | throwOnError is true , and the type cannot be found. |
T:System.IO.FileNotFoundException | name requires a dependent assembly that could not be found. |
T:System.IO.FileLoadException | name requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and name requires a dependent assembly that was not preloaded. |
T:System.BadImageFormatException | name requires a dependent assembly, but the file is not a valid assembly. -or- name requires a dependent assembly which was compiled for a version of the runtime later than the currently loaded version. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 895 of file Assembly.cs.
|
virtual |
Gets the T:System.Type object with the specified name in the assembly instance, with the options of ignoring the case, and of throwing an exception if the type is not found.
name | The full name of the type. |
throwOnError | true to throw an exception if the type is not found; false to return null . |
ignoreCase | true to ignore the case of the type name; otherwise, false . |
T:System.ArgumentException | name is invalid.-or- The length of name exceeds 1024 characters. |
T:System.ArgumentNullException | name is null . |
T:System.TypeLoadException | throwOnError is true , and the type cannot be found. |
T:System.IO.FileNotFoundException | name |
requires a dependent assembly that could not be found.
T:System.IO.FileLoadException | name requires a dependent assembly that was found but could not be loaded.-or-The current assembly was loaded into the reflection-only context, and name requires a dependent assembly that was not preloaded. |
T:System.BadImageFormatException | name requires a dependent assembly, but the file is not a valid assembly. -or- name requires a dependent assembly which was compiled for a version of the runtime later than the currently loaded version. |
Implements System.Runtime.InteropServices._Assembly.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 923 of file Assembly.cs.
|
virtual |
Gets the types defined in this assembly.
T:System.Reflection.ReflectionTypeLoadException | The assembly contains one or more types that cannot be loaded. The array returned by the P:System.Reflection.ReflectionTypeLoadException.Types property of this exception contains a T:System.Type object for each type that was loaded and null for each type that could not be loaded, while the P:System.Reflection.ReflectionTypeLoadException.LoaderExceptions property contains an exception for each type that could not be loaded. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 941 of file Assembly.cs.
|
virtual |
Indicates whether or not a specified attribute has been applied to the assembly.
attributeType | The type of the attribute to be checked for this assembly. |
inherit | This argument is ignored for objects of this type. |
true
if the attribute has been applied to the assembly; otherwise, false
.T:System.ArgumentNullException | attributeType is null . |
T:System.ArgumentException | attributeType uses an invalid type. |
Implements System.Reflection.ICustomAttributeProvider.
Reimplemented in System.Reflection.Emit.AssemblyBuilder.
Definition at line 1070 of file Assembly.cs.
|
static |
Loads an assembly given the long form of its name.
assemblyString | The long form of the assembly name. |
T:System.ArgumentNullException | assemblyString is null . |
T:System.ArgumentException | assemblyString is a zero-length string. |
T:System.IO.FileNotFoundException | assemblyString is not found. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
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. |
Definition at line 507 of file Assembly.cs.
|
static |
Loads an assembly given its display name, loading the assembly into the domain of the caller using the supplied evidence.
assemblyString | The display name of the assembly. |
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.IO.FileLoadException | A file that was found could not be loaded.-or-An assembly or module was loaded twice with two different evidences. |
Definition at line 566 of file Assembly.cs.
|
static |
Loads an assembly given its T:System.Reflection.AssemblyName.
assemblyRef | The object that describes the assembly to be loaded. |
T:System.ArgumentNullException | assemblyRef is null . |
T:System.IO.FileNotFoundException | assemblyRef is not found. |
T:System.IO.FileLoadException | In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, T:System.IO.IOException, instead.A file that was found could not be loaded. |
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. |
Definition at line 586 of file Assembly.cs.
|
static |
Loads an assembly given its T:System.Reflection.AssemblyName. The assembly is loaded into the domain of the caller using the supplied evidence.
assemblyRef | The object that describes the assembly to be loaded. |
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.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
Definition at line 606 of file Assembly.cs.
|
static |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the application domain of the caller.
rawAssembly | A byte array 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. |
Definition at line 653 of file Assembly.cs.
|
static |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols for the assembly. The assembly is loaded into the application domain of the caller.
rawAssembly | A byte array that is a COFF-based image containing an emitted assembly. |
rawSymbolStore | A byte array that contains 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. |
Definition at line 688 of file Assembly.cs.
|
static |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and specifying the source for the security context. The assembly is loaded into the application domain of the caller.
rawAssembly | A byte array that is a COFF-based image containing an emitted assembly. |
rawSymbolStore | A byte array that contains the raw bytes representing the symbols for the assembly. |
securityContextSource | The source of the security context. |
T:System.ArgumentNullException | rawAssembly is null . |
T:System.BadImageFormatException | rawAssembly is not a valid assembly. -or- rawAssembly was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.ArgumentOutOfRangeException | The value of securityContextSource is not one of the enumeration values. |
Definition at line 709 of file Assembly.cs.
|
static |
Loads the assembly with a common object file format (COFF)-based image containing an emitted assembly, optionally including symbols and evidence for the assembly. The assembly is loaded into the application domain of the caller.
rawAssembly | A byte array that is a COFF-based image containing an emitted assembly. |
rawSymbolStore | A byte array that contains 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.IO.FileLoadException | An assembly or module was loaded twice with two different evidences. |
T:System.NotSupportedException | securityEvidence is not null . By default, legacy CAS policy is not enabled in the .NET Framework 4; when it is not enabled, securityEvidence must be null . |
Definition at line 736 of file Assembly.cs.
|
static |
Loads the contents of an assembly file on the specified path.
path | The fully qualified path of the file to load. |
T:System.ArgumentException | The path argument is not an absolute path. |
T:System.ArgumentNullException | The path parameter is null . |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.IO.FileNotFoundException | The path parameter is an empty string ("") or does not exist. |
T:System.BadImageFormatException | path is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and path was compiled with a later version. |
Definition at line 761 of file Assembly.cs.
|
static |
Loads an assembly given its path, loading the assembly into the domain of the caller using the supplied evidence.
path | The fully qualified path of the assembly file. |
securityEvidence | Evidence for loading the assembly. |
T:System.ArgumentException | The path argument is not an absolute path. |
T:System.ArgumentNullException | The path parameter is null . |
T:System.IO.FileNotFoundException | The path parameter is an empty string ("") or does not exist. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.BadImageFormatException | path is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and path was compiled with a later version. |
T:System.NotSupportedException | securityEvidence is not null . By default, legacy CAS policy is not enabled in the .NET Framework 4; when it is not enabled, securityEvidence must be null . |
Definition at line 783 of file Assembly.cs.
|
static |
Loads an assembly given its file name or path.
assemblyFile | The name or path of the file that contains the manifest of the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a filename extension. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly; for example, a 32-bit assembly in a 64-bit process. See the exception topic for more information. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.Security.SecurityException | A codebase that does not start with "file://" was specified without the required T:System.Net.WebPermission. |
T:System.ArgumentException | The assemblyFile parameter is an empty string (""). |
T:System.IO.PathTooLongException | The assembly name is longer than MAX_PATH characters. |
Definition at line 369 of file Assembly.cs.
|
static |
Loads an assembly given its file name or path and supplying security evidence.
assemblyFile | The name or path of the file that contains the manifest of the assembly. |
securityEvidence | Evidence for loading the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a filename extension. |
T:System.IO.FileLoadException | A file that was found could not be loaded.-or-The securityEvidence is not ambiguous and is determined to be invalid. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly; for example, a 32-bit assembly in a 64-bit process. See the exception topic for more information. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.Security.SecurityException | A codebase that does not start with "file://" was specified without the required T:System.Net.WebPermission. |
T:System.ArgumentException | The assemblyFile parameter is an empty string (""). |
T:System.IO.PathTooLongException | The assembly name is longer than MAX_PATH characters. |
Definition at line 415 of file Assembly.cs.
|
static |
Loads an assembly given its file name or path, security evidence, hash value, and hash algorithm.
assemblyFile | The name or path of the file that contains the manifest of the assembly. |
securityEvidence | Evidence for loading the assembly. |
hashValue | The value of the computed hash code. |
hashAlgorithm | The hash algorithm used for hashing files and for generating the strong name. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a filename extension. |
T:System.IO.FileLoadException | A file that was found could not be loaded.-or-The securityEvidence is not ambiguous and is determined to be invalid. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly; for example, a 32-bit assembly in a 64-bit process. See the exception topic for more information. -or-Version 2.0 or later of the common language runtime is currently loaded and assemblyFile was compiled with a later version. |
T:System.Security.SecurityException | A codebase that does not start with "file://" was specified without the required T:System.Net.WebPermission. |
T:System.ArgumentException | The assemblyFile parameter is an empty string (""). |
T:System.IO.PathTooLongException | The assembly name is longer than MAX_PATH characters. |
Definition at line 440 of file Assembly.cs.
|
static |
Loads an assembly given its file name or path, hash value, and hash algorithm.
assemblyFile | The name or path of the file that contains the manifest of the assembly. |
hashValue | The value of the computed hash code. |
hashAlgorithm | The hash algorithm used for hashing files and for generating the strong name. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a file name extension. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly; for example, a 32-bit assembly in a 64-bit process. See the exception topic for more information. -or- assemblyFile was compiled with a later version of the common language runtime than the version that is currently loaded. |
T:System.Security.SecurityException | A codebase that does not start with "file://" was specified without the required T:System.Net.WebPermission. |
T:System.ArgumentException | The assemblyFile parameter is an empty string (""). |
T:System.IO.PathTooLongException | The assembly name is longer than MAX_PATH characters. |
Definition at line 464 of file Assembly.cs.
Module System.Reflection.Assembly.LoadModule | ( | string | moduleName, |
byte [] | rawModule | ||
) |
Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file.
moduleName | The name of the module. This string must correspond to a file name in this assembly's manifest. |
rawModule | A byte array that is a COFF-based image containing an emitted module, or a resource. |
T:System.ArgumentNullException | moduleName or rawModule is null . |
T:System.ArgumentException | moduleName does not match a file entry in this assembly's manifest. |
T:System.BadImageFormatException | rawModule is not a valid module. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1093 of file Assembly.cs.
|
virtual |
Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file. The raw bytes representing the symbols for the module are also loaded.
moduleName | The name of the module. This string must correspond to a file name in this assembly's manifest. |
rawModule | A byte array that is a COFF-based image containing an emitted module, or a resource. |
rawSymbolStore | A byte array containing the raw bytes representing the symbols for the module. Must be null if this is a resource file. |
T:System.ArgumentNullException | moduleName or rawModule is null . |
T:System.ArgumentException | moduleName does not match a file entry in this assembly's manifest. |
T:System.BadImageFormatException | rawModule is not a valid module. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1110 of file Assembly.cs.
|
static |
Loads an assembly from the application directory or from the global assembly cache using a partial name.
partialName | The display name of the assembly. |
null
.T:System.ArgumentNullException | The partialName parameter is null . |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and partialName was compiled with a later version. |
Definition at line 621 of file Assembly.cs.
|
static |
Loads an assembly from the application directory or from the global assembly cache using a partial name. The assembly is loaded into the domain of the caller using the supplied evidence.
partialName | The display name of the assembly. |
securityEvidence | Evidence for loading the assembly. |
null
.T:System.IO.FileLoadException | An assembly or module was loaded twice with two different sets of evidence. |
T:System.ArgumentNullException | The partialName parameter is null . |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. -or-Version 2.0 or later of the common language runtime is currently loaded and partialName was compiled with a later version. |
Definition at line 638 of file Assembly.cs.
Indicates whether two T:System.Reflection.Assembly objects are not equal.
left | The assembly to compare to right . |
right | The assembly to compare to left . |
true
if left is not equal to right ; otherwise, false
.Definition at line 331 of file Assembly.cs.
Indicates whether two T:System.Reflection.Assembly objects are equal.
left | The assembly to compare to right . |
right | The assembly to compare to left . |
true
if left is equal to right ; otherwise, false
.Definition at line 312 of file Assembly.cs.
|
static |
Loads an assembly into the reflection-only context, given its display name.
assemblyString | The display name of the assembly, as returned by the P:System.Reflection.AssemblyName.FullName property. |
T:System.ArgumentNullException | assemblyString is null . |
T:System.ArgumentException | assemblyString is an empty string (""). |
T:System.IO.FileNotFoundException | assemblyString is not found. |
T:System.IO.FileLoadException | assemblyString is found, but cannot be loaded. |
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. |
Definition at line 546 of file Assembly.cs.
|
static |
Loads the assembly from a common object file format (COFF)-based image containing an emitted assembly. The assembly is loaded into the reflection-only context of the caller's application domain.
rawAssembly | A byte array 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.IO.FileLoadException | rawAssembly cannot be loaded. |
Definition at line 671 of file Assembly.cs.
|
static |
Loads an assembly into the reflection-only context, given its path.
assemblyFile | The path of the file that contains the manifest of the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a file name extension. |
T:System.IO.FileLoadException | assemblyFile is found, but could not be loaded. |
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.Security.SecurityException | A codebase that does not start with "file://" was specified without the required T:System.Net.WebPermission. |
T:System.IO.PathTooLongException | The assembly name is longer than MAX_PATH characters. |
T:System.ArgumentException | assemblyFile is an empty string (""). |
Definition at line 392 of file Assembly.cs.
override string System.Reflection.Assembly.ToString | ( | ) |
Returns the full name of the assembly, also known as the display name.
Implements System.Runtime.InteropServices._Assembly.
Definition at line 1306 of file Assembly.cs.
|
static |
Loads an assembly into the load-from context, bypassing some security checks.
assemblyFile | The name or path of the file that contains the manifest of the assembly. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.IO.FileNotFoundException | assemblyFile is not found, or the module you are trying to load does not specify a filename extension. |
T:System.IO.FileLoadException | A file that was found could not be loaded. |
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.Security.SecurityException | A codebase that does not start with "file://" was specified without the required T:System.Net.WebPermission. |
T:System.ArgumentException | The assemblyFile parameter is an empty string (""). |
T:System.IO.PathTooLongException | The assembly name is longer than MAX_PATH characters. |
Definition at line 486 of file Assembly.cs.
|
get |
Gets the location of the assembly as specified originally, for example, in an T:System.Reflection.AssemblyName object.
Definition at line 27 of file Assembly.cs.
|
get |
Gets a collection that contains this assembly's custom attributes.
Definition at line 169 of file Assembly.cs.
|
get |
Gets a collection of the types defined in this assembly.
Definition at line 85 of file Assembly.cs.
|
get |
Gets the entry point of this assembly.
null
is returned.Definition at line 61 of file Assembly.cs.
|
get |
Gets the URI, including escape characters, that represents the codebase.
Definition at line 37 of file Assembly.cs.
|
get |
Gets the evidence for this assembly.
Definition at line 107 of file Assembly.cs.
|
get |
Gets a collection of the public types defined in this assembly that are visible outside the assembly.
Definition at line 73 of file Assembly.cs.
|
get |
Gets the display name of the assembly.
Definition at line 49 of file Assembly.cs.
|
get |
Gets a value indicating whether the assembly was loaded from the global assembly cache.
true
if the assembly was loaded from the global assembly cache; otherwise, false
.Definition at line 227 of file Assembly.cs.
|
get |
Gets the host context with which the assembly was loaded.
Definition at line 238 of file Assembly.cs.
|
get |
Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest.
Definition at line 216 of file Assembly.cs.
|
get |
Gets a value that indicates whether the current assembly was generated dynamically in the current process by using reflection emit.
true
if the current assembly was generated dynamically in the current process; otherwise, false
.Definition at line 255 of file Assembly.cs.
|
get |
Gets a value that indicates whether the current assembly is loaded with full trust.
true
if the current assembly is loaded with full trust; otherwise, false
.Definition at line 129 of file Assembly.cs.
|
get |
Gets the full path or UNC location of the loaded file that contains the manifest.
T:System.NotSupportedException | The current assembly is a dynamic assembly, represented by an T:System.Reflection.Emit.AssemblyBuilder object. |
Definition at line 205 of file Assembly.cs.
|
get |
Gets the module that contains the manifest for the current assembly.
Definition at line 152 of file Assembly.cs.
|
addremove |
Occurs when the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means.
Definition at line 265 of file Assembly.cs.
|
get |
Gets a collection that contains the modules in this assembly.
Definition at line 193 of file Assembly.cs.
|
get |
Gets the grant set of the current assembly.
Definition at line 117 of file Assembly.cs.
|
get |
Gets a T:System.Boolean value indicating whether this assembly was loaded into the reflection-only context.
true
if the assembly was loaded into the reflection-only context, rather than the execution context; otherwise, false
.Definition at line 182 of file Assembly.cs.
|
get |
Gets a value that indicates which set of security rules the common language runtime (CLR) enforces for this assembly.
Definition at line 140 of file Assembly.cs.