| |
- __builtin__.object
-
- System.Reflection in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Assembly
-
- System.Reflection.Emit in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.AssemblyBuilder
class Assembly(__builtin__.object) |
|
Represents an assembly, which is a reusable, versionable, and self-describing building block of a common language runtime application. |
|
- Method resolution order:
- Assembly
- __builtin__.object
- System.Runtime.InteropServices in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089._Assembly
- System.Security in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IEvidenceFactory
- ICustomAttributeProvider
- System.Runtime.Serialization in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.ISerializable
Methods defined here:
- CreateInstance(...)
- object CreateInstance(self, str typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, Array[object] args, CultureInfo culture, Array[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.
typeName:
The 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 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 of type Object containing 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
System.Runtime.Remoting.Activation.UrlAttribute object. The
System.Runtime.Remoting.Activation.UrlAttribute specifies the URL that is required to
activate a remote object. For a detailed description of client-activated objects, see
Client Activation.
Returns:
An instance of Object representing the type and matching the
specified criteria, or null if typeName is not found.
object CreateInstance(self, str 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 System.Type.FullName of the type to locate.
ignoreCase: true to ignore the case of the type name; otherwise, false.
Returns:
An instance of System.Object representing the type, with culture,
arguments, binder, and activation attributes set to null, and
System.Reflection.BindingFlags set to Public or Instance, or null if typeName is not
found.
object CreateInstance(self, str typeName)
Locates the specified type from this assembly and creates an
instance of it using the system activator, using case-sensitive search.
typeName:
The System.Type.FullName of the type to locate.
Returns:
An instance of System.Object representing the type, with culture,
arguments, binder, and activation attributes set to null, and
System.Reflection.BindingFlags set to Public or Instance, or null if typeName is not
found.
- CreateQualifiedName(...)
- str CreateQualifiedName(str assemblyName, str typeName)
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.
Returns:
A String that is the full name of the type qualified by the display
name of the assembly.
- Equals(...)
- bool Equals(self, object o)
Determines whether this assembly and the specified object are
equal.
o:
The object to compare with this instance.
Returns: true if o is equal to this instance; otherwise, false.
- GetAssembly(...)
- Assembly GetAssembly(Type type)
Gets the currently loaded assembly in which the specified class is
defined.
type:
A System.Type object representing a class in the assembly that will
be returned.
Returns:
The assembly in which the specified class is defined.
- GetCallingAssembly(...)
- Assembly GetCallingAssembly()
Returns the System.Reflection.Assembly of the method that invoked
the currently executing method.
Returns:
The Assembly object of the method that invoked the currently
executing method.
- GetCustomAttributes(...)
- Array[object] GetCustomAttributes(self, Type attributeType, bool inherit)
Gets the custom attributes for this assembly as specified by type.
attributeType:
The System.Type for which the custom attributes are to be returned.
inherit:
This argument is ignored for objects of type
System.Reflection.Assembly.
Returns:
An array of type Object containing the custom attributes for this
assembly as specified by attributeType.
Array[object] GetCustomAttributes(self, bool inherit)
Gets all the custom attributes for this assembly.
inherit:
This argument is ignored for objects of type
System.Reflection.Assembly.
Returns:
An array of type Object containing the custom attributes for this
assembly.
- GetEntryAssembly(...)
- Assembly GetEntryAssembly()
Gets the process executable in the default application domain. In
other application domains, this is the first executable that was executed by
System.AppDomain.ExecuteAssembly(System.String).
Returns:
The Assembly that is the process executable in the default
application domain, or the first executable that was executed by
System.AppDomain.ExecuteAssembly(System.String). Can return null when called from
unmanaged code.
- GetExecutingAssembly(...)
- Assembly GetExecutingAssembly()
Gets the assembly that contains the code that is currently
executing.
Returns:
A System.Reflection.Assembly representing the assembly that
contains the code that is currently executing.
- GetExportedTypes(...)
- Array[Type] GetExportedTypes(self)
Gets the public types defined in this assembly that are visible
outside the assembly.
Returns:
An array of Type objects that represent the types defined in this
assembly that are visible outside the assembly.
- GetFile(...)
- FileStream GetFile(self, str name)
Gets a 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.
Returns:
A System.IO.FileStream for the specified file, or null if the file
is not found.
- GetFiles(...)
- Array[FileStream] GetFiles(self, bool getResourceModules)
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.
Returns:
An array of System.IO.FileStream objects.
Array[FileStream] GetFiles(self)
Gets the files in the file table of an assembly manifest.
Returns:
An array of System.IO.FileStream objects.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for this instance.
Returns:
A 32-bit signed integer hash code.
- GetLoadedModules(...)
- Array[Module] GetLoadedModules(self, bool getResourceModules)
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.
Returns:
An array of modules.
Array[Module] GetLoadedModules(self)
Gets all the loaded modules that are part of this assembly.
Returns:
An array of modules.
- GetManifestResourceInfo(...)
- ManifestResourceInfo GetManifestResourceInfo(self, str resourceName)
Returns information about how the given resource has been
persisted.
resourceName:
The case-sensitive name of the resource.
Returns: System.Reflection.ManifestResourceInfo populated with information about the resource's
topology, or null if the resource is not found.
- GetManifestResourceNames(...)
- Array[str] GetManifestResourceNames(self)
Returns the names of all the resources in this assembly.
Returns:
An array of type String containing the names of all the resources.
- GetManifestResourceStream(...)
- Stream GetManifestResourceStream(self, str name)
Loads the specified manifest resource from this assembly.
name:
The case-sensitive name of the manifest resource being requested.
Returns:
A System.IO.Stream representing the manifest resource; null if no
resources were specified during compilation, or if the resource is not visible to the
caller.
Stream GetManifestResourceStream(self, Type type, str name)
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.
Returns:
A System.IO.Stream representing the manifest resource; null if no
resources were specified during compilation or if the resource is not visible to the
caller.
- GetModule(...)
- Module GetModule(self, str name)
Gets the specified module in this assembly.
name:
The name of the module being requested.
Returns:
The module being requested, or null if the module is not found.
- GetModules(...)
- Array[Module] GetModules(self, bool getResourceModules)
Gets all the modules that are part of this assembly, specifying
whether to include resource modules.
getResourceModules: true to include resource modules; otherwise, false.
Returns:
An array of modules.
Array[Module] GetModules(self)
Gets all the modules that are part of this assembly.
Returns:
An array of modules.
- GetName(...)
- AssemblyName GetName(self, bool copiedName)
Gets an System.Reflection.AssemblyName for this assembly, setting
the codebase as specified by copiedName.
copiedName: true to set the System.Reflection.Assembly.CodeBase to the location of the assembly after
it was shadow copied; false to set System.Reflection.Assembly.CodeBase to the original
location.
Returns:
An System.Reflection.AssemblyName for this assembly.
AssemblyName GetName(self)
Gets an System.Reflection.AssemblyName for this assembly.
Returns:
An System.Reflection.AssemblyName for this assembly.
- GetObjectData(...)
- GetObjectData(self, SerializationInfo info, StreamingContext context)
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.
- GetReferencedAssemblies(...)
- Array[AssemblyName] GetReferencedAssemblies(self)
Gets the System.Reflection.AssemblyName objects for all the
assemblies referenced by this assembly.
Returns:
An array of type System.Reflection.AssemblyName containing all the
assemblies referenced by this assembly.
- GetSatelliteAssembly(...)
- Assembly GetSatelliteAssembly(self, CultureInfo culture, Version version)
Gets the specified version of the satellite assembly for the
specified culture.
culture:
The specified culture.
version:
The version of the satellite assembly.
Returns:
The specified satellite assembly.
Assembly GetSatelliteAssembly(self, CultureInfo culture)
Gets the satellite assembly for the specified culture.
culture:
The specified culture.
Returns:
The specified satellite assembly.
- GetType(...)
- Type GetType(self, str name, bool throwOnError, bool ignoreCase)
Gets the 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.
Returns:
A System.Type object that represents the specified class.
Type GetType(self, str name, bool throwOnError)
Gets the 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.
Returns:
A System.Type object that represents the specified class.
Type GetType(self, str name)
Gets the System.Type object with the specified name in the assembly
instance.
name:
The full name of the type.
Returns:
A System.Type object that represents the specified class, or null
if the class is not found.
- GetTypes(...)
- Array[Type] GetTypes(self)
Gets the types defined in this assembly.
Returns:
An array of type System.Type containing objects for all the types
defined in this assembly.
- IsDefined(...)
- bool IsDefined(self, Type attributeType, bool inherit)
Indicates whether or not a specified attribute has been applied to
the assembly.
attributeType:
The System.Type of the attribute to be checked for this assembly.
inherit:
This argument is ignored for objects of this type.
Returns: true if the attribute has been applied to the assembly; otherwise, false.
- Load(...)
- Assembly Load(Array[Byte] rawAssembly)
Loads the assembly with a common object file format (COFF)-based
image containing an emitted assembly. The assembly is loaded into the domain of the
caller.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
Returns:
The loaded assembly.
Assembly Load(Array[Byte] rawAssembly, Array[Byte] rawSymbolStore)
Loads the assembly with a common object file format (COFF)-based
image containing an emitted assembly.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
rawSymbolStore:
An array of type byte containing the raw bytes representing the
symbols for the assembly.
Returns:
The loaded assembly.
Assembly Load(Array[Byte] rawAssembly, Array[Byte] rawSymbolStore, Evidence securityEvidence)
Loads the assembly with a common object file format (COFF)-based
image containing an emitted assembly.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
rawSymbolStore:
An array of type byte containing the raw bytes representing the
symbols for the assembly.
securityEvidence:
Evidence for loading the assembly.
Returns:
The loaded assembly.
Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity)
Loads an assembly given its System.Reflection.AssemblyName. The
assembly is loaded into the domain of the caller using the supplied evidence.
assemblyRef:
The System.Reflection.AssemblyName object that describes the
assembly to be loaded.
assemblySecurity:
Evidence for loading the assembly.
Returns:
The loaded assembly.
Assembly Load(str assemblyString)
Loads an assembly given the long form of its name.
assemblyString:
The long form of the assembly name.
Returns:
The loaded assembly.
Assembly Load(str assemblyString, Evidence assemblySecurity)
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.
Returns:
The loaded assembly.
Assembly Load(AssemblyName assemblyRef)
Loads an assembly given its System.Reflection.AssemblyName.
assemblyRef:
The System.Reflection.AssemblyName object that describes the
assembly to be loaded.
Returns:
The loaded assembly.
- LoadFile(...)
- Assembly LoadFile(str path, Evidence securityEvidence)
Loads an assembly given its path, loading the assembly into the
domain of the caller using the supplied evidence.
path:
The path of the assembly file.
securityEvidence:
Evidence for loading the assembly.
Returns:
The loaded assembly.
Assembly LoadFile(str path)
Loads the contents of an assembly file on the specified path.
path:
The path of the file to load.
Returns:
The loaded assembly.
- LoadFrom(...)
- Assembly LoadFrom(str assemblyFile, Evidence securityEvidence, Array[Byte] hashValue, AssemblyHashAlgorithm hashAlgorithm)
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.
Returns:
The loaded assembly.
Assembly LoadFrom(str assemblyFile, Evidence securityEvidence)
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.
Returns:
The loaded assembly.
Assembly LoadFrom(str assemblyFile)
Loads an assembly given its file name or path.
assemblyFile:
The name or path of the file that contains the manifest of the
assembly.
Returns:
The loaded assembly.
- LoadModule(...)
- Module LoadModule(self, str moduleName, Array[Byte] rawModule, Array[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.
moduleName:
Name of the module. 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.
Returns:
The loaded module.
Module LoadModule(self, str moduleName, Array[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:
Name of the module. 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.
Returns:
The loaded Module.
- LoadWithPartialName(...)
- Assembly LoadWithPartialName(str 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.
partialName:
The display name of the assembly.
securityEvidence: System.Security.Policy.Evidence for loading the assembly.
Returns:
The loaded assembly. If partialName is not found, this method
returns null.
Assembly LoadWithPartialName(str partialName)
Loads an assembly from the application directory or from the global
assembly cache using a partial name.
partialName:
The display name of the assembly.
Returns:
The loaded assembly. If partialName is not found, this method
returns null.
- ReflectionOnlyLoad(...)
- Assembly ReflectionOnlyLoad(Array[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.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
Returns:
An System.Reflection.Assembly object that represents the loaded
assembly.
Assembly ReflectionOnlyLoad(str assemblyString)
Loads an assembly into the reflection-only context, given its
display name.
assemblyString:
The display name of the assembly, as returned by the
System.Reflection.AssemblyName.FullName property.
Returns:
An System.Reflection.Assembly object that represents the loaded
assembly.
- ReflectionOnlyLoadFrom(...)
- Assembly ReflectionOnlyLoadFrom(str assemblyFile)
Loads an assembly into the reflection-only context, given its path.
assemblyFile:
The path of the file that contains the manifest of the assembly.
Returns:
An System.Reflection.Assembly object that represents the loaded
assembly.
- ToString(...)
- str ToString(self)
Returns the full name of the assembly, also known as the display
name.
Returns:
The full name of the assembly, or the class name if the full name
of the assembly cannot be determined.
- __dir__(...)
- list __dir__(Assembly self)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ne__(...)
- bool __ne__(object x, object y)
- __reduce_ex__(...)
- helper for pickle
- __repr__(...)
- object __repr__(Assembly self)
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- CodeBase
- Gets the location of the assembly as specified originally, for example, in an System.Reflection.AssemblyName object.
Get: str CodeBase(self)
- EntryPoint
- Gets the entry point of this assembly.
Get: MethodInfo EntryPoint(self)
- EscapedCodeBase
- Gets the URI, including escape characters, that represents the codebase.
Get: str EscapedCodeBase(self)
- Evidence
- Gets the evidence for this assembly.
Get: Evidence Evidence(self)
- FullName
- Gets the display name of the assembly.
Get: str FullName(self)
- GlobalAssemblyCache
- Gets a value indicating whether the assembly was loaded from the global assembly cache.
Get: bool GlobalAssemblyCache(self)
- HostContext
- Gets the host context with which the assembly was loaded.
Get: Int64 HostContext(self)
- ImageRuntimeVersion
- Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest.
Get: str ImageRuntimeVersion(self)
- Location
- Gets the path or UNC location of the loaded file that contains the manifest.
Get: str Location(self)
- ManifestModule
- Gets the module that contains the manifest for the current assembly.
Get: Module ManifestModule(self)
- ModuleResolve
- Occurs when the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means.
- ReflectionOnly
- Gets a System.Boolean value indicating whether this assembly was loaded into the reflection-only context.
Get: bool ReflectionOnly(self)
|
class AssemblyBuilder(System.Reflection in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Assembly) |
|
Defines and represents a dynamic assembly. |
|
- Method resolution order:
- AssemblyBuilder
- System.Reflection in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Assembly
- __builtin__.object
- System.Runtime.InteropServices in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089._Assembly
- System.Security in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.IEvidenceFactory
- System.Reflection in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.ICustomAttributeProvider
- System.Runtime.Serialization in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.ISerializable
- System.Runtime.InteropServices in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089._AssemblyBuilder
Methods defined here:
- AddResourceFile(...)
- AddResourceFile(self, str name, str fileName, ResourceAttributes attribute)
Adds an existing resource file to this assembly.
name:
The logical name of the resource.
fileName:
The physical file name (.resources file) to which the logical name
is mapped. This should not include a path; the file must be in the same directory as the
assembly to which it is added.
attribute:
The resource attributes.
AddResourceFile(self, str name, str fileName)
Adds an existing resource file to this assembly.
name:
The logical name of the resource.
fileName:
The physical file name (.resources file) to which the logical name
is mapped. This should not include a path; the file must be in the same directory as the
assembly to which it is added.
- DefineDynamicModule(...)
- ModuleBuilder DefineDynamicModule(self, str name, str fileName)
Defines a persistable dynamic module with the given name that will
be saved to the specified file. No symbol information is emitted.
name:
The name of the dynamic module. Must be less than 260 characters in
length.
fileName:
The name of the file to which the dynamic module should be saved.
Returns:
A System.Reflection.Emit.ModuleBuilder object representing the
defined dynamic module.
ModuleBuilder DefineDynamicModule(self, str name, str fileName, bool emitSymbolInfo)
Defines a persistable dynamic module, specifying the module name,
the name of the file to which the module will be saved, and whether symbol information
should be emitted using the default symbol writer.
name:
The name of the dynamic module. Must be less than 260 characters in
length.
fileName:
The name of the file to which the dynamic module should be saved.
emitSymbolInfo:
If true, symbolic information is written using the default symbol
writer.
Returns:
A System.Reflection.Emit.ModuleBuilder object representing the
defined dynamic module.
ModuleBuilder DefineDynamicModule(self, str name)
Defines a named transient dynamic module in this assembly.
name:
The name of the dynamic module. Must be less than 260 characters in
length.
Returns:
A System.Reflection.Emit.ModuleBuilder representing the defined
dynamic module.
ModuleBuilder DefineDynamicModule(self, str name, bool emitSymbolInfo)
Defines a named transient dynamic module in this assembly and
specifies whether symbol information should be emitted.
name:
The name of the dynamic module. Must be less than 260 characters in
length.
emitSymbolInfo: true if symbol information is to be emitted; otherwise, false.
Returns:
A System.Reflection.Emit.ModuleBuilder representing the defined
dynamic module.
- DefineResource(...)
- IResourceWriter DefineResource(self, str name, str description, str fileName, ResourceAttributes attribute)
Defines a standalone managed resource for this assembly. Attributes
can be specified for the managed resource.
name:
The logical name of the resource.
description:
A textual description of the resource.
fileName:
The physical file name (.resources file) to which the logical name
is mapped. This should not include a path.
attribute:
The resource attributes.
Returns:
A System.Resources.ResourceWriter object for the specified
resource.
IResourceWriter DefineResource(self, str name, str description, str fileName)
Defines a standalone managed resource for this assembly with the
default public resource attribute.
name:
The logical name of the resource.
description:
A textual description of the resource.
fileName:
The physical file name (.resources file) to which the logical name
is mapped. This should not include a path.
Returns:
A System.Resources.ResourceWriter object for the specified
resource.
- DefineUnmanagedResource(...)
- DefineUnmanagedResource(self, str resourceFileName)
Defines an unmanaged resource file for this assembly given the name
of the resource file.
resourceFileName:
The name of the resource file.
DefineUnmanagedResource(self, Array[Byte] resource)
Defines an unmanaged resource for this assembly as an opaque blob
of bytes.
resource:
The opaque blob of bytes representing the unmanaged resource.
- DefineVersionInfoResource(...)
- DefineVersionInfoResource(self)
Defines an unmanaged version information resource using the
information specified in the assembly's AssemblyName object and the assembly's custom
attributes.
DefineVersionInfoResource(self, str product, str productVersion, str company, str copyright, str trademark)
Defines an unmanaged version information resource for this assembly
with the given specifications.
product:
The name of the product with which this assembly is distributed.
productVersion:
The version of the product with which this assembly is distributed.
company:
The name of the company that produced this assembly.
copyright:
Describes all copyright notices, trademarks, and registered
trademarks that apply to this assembly. This should include the full text of all notices,
legal symbols, copyright dates, trademark numbers, and so on. In English, this string
should be in the format "Copyright Microsoft Corp. 1990-2001".
trademark:
Describes all trademarks and registered trademarks that apply to
this assembly. This should include the full text of all notices, legal symbols, trademark
numbers, and so on. In English, this string should be in the format "Windows is a
trademark of Microsoft Corporation".
- GetDynamicModule(...)
- ModuleBuilder GetDynamicModule(self, str name)
Returns the dynamic module with the specified name.
name:
The name of the requested dynamic module.
Returns:
A ModuleBuilder object representing the requested dynamic module.
- GetExportedTypes(...)
- Array[Type] GetExportedTypes(self)
Gets the exported types defined in this assembly.
Returns:
An array of System.Type containing the exported types defined in
this assembly.
- GetFile(...)
- FileStream GetFile(self, str name)
Gets a System.IO.FileStream for the specified file in the file
table of the manifest of this assembly.
name:
The name of the specified file.
Returns:
A System.IO.FileStream for the specified file, or null, if the file
is not found.
- GetFiles(...)
- Array[FileStream] GetFiles(self, bool getResourceModules)
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.
Returns:
An array of System.IO.FileStream objects.
- GetManifestResourceInfo(...)
- ManifestResourceInfo GetManifestResourceInfo(self, str resourceName)
Returns information about how the given resource has been
persisted.
resourceName:
The name of the resource.
Returns: System.Reflection.ManifestResourceInfo populated with information about the resource's
topology, or null if the resource is not found.
- GetManifestResourceNames(...)
- Array[str] GetManifestResourceNames(self)
Loads the specified manifest resource from this assembly.
Returns:
An array of type String containing the names of all the resources.
- GetManifestResourceStream(...)
- Stream GetManifestResourceStream(self, str name)
Loads the specified manifest resource from this assembly.
name:
The name of the manifest resource being requested.
Returns:
A System.IO.Stream representing this manifest resource.
Stream GetManifestResourceStream(self, Type type, str name)
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 name of the manifest resource being requested.
Returns:
A System.IO.Stream representing this manifest resource.
- Save(...)
- Save(self, str assemblyFileName, PortableExecutableKinds portableExecutableKind, ImageFileMachine imageFileMachine)
Saves this dynamic assembly to disk, specifying the nature of code
in the assembly's executables and the target platform.
assemblyFileName:
The file name of the assembly.
portableExecutableKind:
A bitwise combination of the
System.Reflection.PortableExecutableKinds values that specifies the nature of the code.
imageFileMachine:
One of the System.Reflection.ImageFileMachine values that specifies
the target platform.
Save(self, str assemblyFileName)
Saves this dynamic assembly to disk.
assemblyFileName:
The file name of the assembly.
- SetCustomAttribute(...)
- SetCustomAttribute(self, CustomAttributeBuilder customBuilder)
Set a custom attribute on this assembly using a custom attribute
builder.
customBuilder:
An instance of a helper class to define the custom attribute.
SetCustomAttribute(self, ConstructorInfo con, Array[Byte] binaryAttribute)
Set a custom attribute on this assembly using a specified custom
attribute blob.
con:
The constructor for the custom attribute.
binaryAttribute:
A byte blob representing the attributes.
- SetEntryPoint(...)
- SetEntryPoint(self, MethodInfo entryMethod, PEFileKinds fileKind)
Sets the entry point for this assembly and defines the type of the
portable executable (PE file) being built.
entryMethod:
A reference to the method that represents the entry point for this
dynamic assembly.
fileKind:
The type of the assembly executable being built.
SetEntryPoint(self, MethodInfo entryMethod)
Sets the entry point for this dynamic assembly, assuming that a
console application is being built.
entryMethod:
A reference to the method that represents the entry point for this
dynamic assembly.
- __str__(...)
- x.__str__() <==> str(x)
Data descriptors defined here:
- CodeBase
- Gets the location of the assembly, as specified originally (such as in an System.Reflection.AssemblyName object).
Get: str CodeBase(self)
- EntryPoint
- Returns the entry point of this assembly.
Get: MethodInfo EntryPoint(self)
- ImageRuntimeVersion
- Gets the version of the common language runtime that will be saved in the file containing the manifest.
Get: str ImageRuntimeVersion(self)
- Location
- Gets the location, in codebase format, of the loaded file that contains the manifest if it is not shadow-copied.
Get: str Location(self)
Methods inherited from System.Reflection in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Assembly:
- CreateInstance(...)
- object CreateInstance(self, str typeName, bool ignoreCase, BindingFlags bindingAttr, Binder binder, Array[object] args, CultureInfo culture, Array[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.
typeName:
The 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 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 of type Object containing 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
System.Runtime.Remoting.Activation.UrlAttribute object. The
System.Runtime.Remoting.Activation.UrlAttribute specifies the URL that is required to
activate a remote object. For a detailed description of client-activated objects, see
Client Activation.
Returns:
An instance of Object representing the type and matching the
specified criteria, or null if typeName is not found.
object CreateInstance(self, str 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 System.Type.FullName of the type to locate.
ignoreCase: true to ignore the case of the type name; otherwise, false.
Returns:
An instance of System.Object representing the type, with culture,
arguments, binder, and activation attributes set to null, and
System.Reflection.BindingFlags set to Public or Instance, or null if typeName is not
found.
object CreateInstance(self, str typeName)
Locates the specified type from this assembly and creates an
instance of it using the system activator, using case-sensitive search.
typeName:
The System.Type.FullName of the type to locate.
Returns:
An instance of System.Object representing the type, with culture,
arguments, binder, and activation attributes set to null, and
System.Reflection.BindingFlags set to Public or Instance, or null if typeName is not
found.
- CreateQualifiedName(...)
- str CreateQualifiedName(str assemblyName, str typeName)
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.
Returns:
A String that is the full name of the type qualified by the display
name of the assembly.
- Equals(...)
- bool Equals(self, object o)
Determines whether this assembly and the specified object are
equal.
o:
The object to compare with this instance.
Returns: true if o is equal to this instance; otherwise, false.
- GetAssembly(...)
- Assembly GetAssembly(Type type)
Gets the currently loaded assembly in which the specified class is
defined.
type:
A System.Type object representing a class in the assembly that will
be returned.
Returns:
The assembly in which the specified class is defined.
- GetCallingAssembly(...)
- Assembly GetCallingAssembly()
Returns the System.Reflection.Assembly of the method that invoked
the currently executing method.
Returns:
The Assembly object of the method that invoked the currently
executing method.
- GetCustomAttributes(...)
- Array[object] GetCustomAttributes(self, Type attributeType, bool inherit)
Gets the custom attributes for this assembly as specified by type.
attributeType:
The System.Type for which the custom attributes are to be returned.
inherit:
This argument is ignored for objects of type
System.Reflection.Assembly.
Returns:
An array of type Object containing the custom attributes for this
assembly as specified by attributeType.
Array[object] GetCustomAttributes(self, bool inherit)
Gets all the custom attributes for this assembly.
inherit:
This argument is ignored for objects of type
System.Reflection.Assembly.
Returns:
An array of type Object containing the custom attributes for this
assembly.
- GetEntryAssembly(...)
- Assembly GetEntryAssembly()
Gets the process executable in the default application domain. In
other application domains, this is the first executable that was executed by
System.AppDomain.ExecuteAssembly(System.String).
Returns:
The Assembly that is the process executable in the default
application domain, or the first executable that was executed by
System.AppDomain.ExecuteAssembly(System.String). Can return null when called from
unmanaged code.
- GetExecutingAssembly(...)
- Assembly GetExecutingAssembly()
Gets the assembly that contains the code that is currently
executing.
Returns:
A System.Reflection.Assembly representing the assembly that
contains the code that is currently executing.
- GetHashCode(...)
- int GetHashCode(self)
Returns the hash code for this instance.
Returns:
A 32-bit signed integer hash code.
- GetLoadedModules(...)
- Array[Module] GetLoadedModules(self, bool getResourceModules)
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.
Returns:
An array of modules.
Array[Module] GetLoadedModules(self)
Gets all the loaded modules that are part of this assembly.
Returns:
An array of modules.
- GetModule(...)
- Module GetModule(self, str name)
Gets the specified module in this assembly.
name:
The name of the module being requested.
Returns:
The module being requested, or null if the module is not found.
- GetModules(...)
- Array[Module] GetModules(self, bool getResourceModules)
Gets all the modules that are part of this assembly, specifying
whether to include resource modules.
getResourceModules: true to include resource modules; otherwise, false.
Returns:
An array of modules.
Array[Module] GetModules(self)
Gets all the modules that are part of this assembly.
Returns:
An array of modules.
- GetName(...)
- AssemblyName GetName(self, bool copiedName)
Gets an System.Reflection.AssemblyName for this assembly, setting
the codebase as specified by copiedName.
copiedName: true to set the System.Reflection.Assembly.CodeBase to the location of the assembly after
it was shadow copied; false to set System.Reflection.Assembly.CodeBase to the original
location.
Returns:
An System.Reflection.AssemblyName for this assembly.
AssemblyName GetName(self)
Gets an System.Reflection.AssemblyName for this assembly.
Returns:
An System.Reflection.AssemblyName for this assembly.
- GetObjectData(...)
- GetObjectData(self, SerializationInfo info, StreamingContext context)
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.
- GetReferencedAssemblies(...)
- Array[AssemblyName] GetReferencedAssemblies(self)
Gets the System.Reflection.AssemblyName objects for all the
assemblies referenced by this assembly.
Returns:
An array of type System.Reflection.AssemblyName containing all the
assemblies referenced by this assembly.
- GetSatelliteAssembly(...)
- Assembly GetSatelliteAssembly(self, CultureInfo culture, Version version)
Gets the specified version of the satellite assembly for the
specified culture.
culture:
The specified culture.
version:
The version of the satellite assembly.
Returns:
The specified satellite assembly.
Assembly GetSatelliteAssembly(self, CultureInfo culture)
Gets the satellite assembly for the specified culture.
culture:
The specified culture.
Returns:
The specified satellite assembly.
- GetType(...)
- Type GetType(self, str name, bool throwOnError, bool ignoreCase)
Gets the 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.
Returns:
A System.Type object that represents the specified class.
Type GetType(self, str name, bool throwOnError)
Gets the 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.
Returns:
A System.Type object that represents the specified class.
Type GetType(self, str name)
Gets the System.Type object with the specified name in the assembly
instance.
name:
The full name of the type.
Returns:
A System.Type object that represents the specified class, or null
if the class is not found.
- GetTypes(...)
- Array[Type] GetTypes(self)
Gets the types defined in this assembly.
Returns:
An array of type System.Type containing objects for all the types
defined in this assembly.
- IsDefined(...)
- bool IsDefined(self, Type attributeType, bool inherit)
Indicates whether or not a specified attribute has been applied to
the assembly.
attributeType:
The System.Type of the attribute to be checked for this assembly.
inherit:
This argument is ignored for objects of this type.
Returns: true if the attribute has been applied to the assembly; otherwise, false.
- Load(...)
- Assembly Load(Array[Byte] rawAssembly)
Loads the assembly with a common object file format (COFF)-based
image containing an emitted assembly. The assembly is loaded into the domain of the
caller.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
Returns:
The loaded assembly.
Assembly Load(Array[Byte] rawAssembly, Array[Byte] rawSymbolStore)
Loads the assembly with a common object file format (COFF)-based
image containing an emitted assembly.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
rawSymbolStore:
An array of type byte containing the raw bytes representing the
symbols for the assembly.
Returns:
The loaded assembly.
Assembly Load(Array[Byte] rawAssembly, Array[Byte] rawSymbolStore, Evidence securityEvidence)
Loads the assembly with a common object file format (COFF)-based
image containing an emitted assembly.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
rawSymbolStore:
An array of type byte containing the raw bytes representing the
symbols for the assembly.
securityEvidence:
Evidence for loading the assembly.
Returns:
The loaded assembly.
Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity)
Loads an assembly given its System.Reflection.AssemblyName. The
assembly is loaded into the domain of the caller using the supplied evidence.
assemblyRef:
The System.Reflection.AssemblyName object that describes the
assembly to be loaded.
assemblySecurity:
Evidence for loading the assembly.
Returns:
The loaded assembly.
Assembly Load(str assemblyString)
Loads an assembly given the long form of its name.
assemblyString:
The long form of the assembly name.
Returns:
The loaded assembly.
Assembly Load(str assemblyString, Evidence assemblySecurity)
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.
Returns:
The loaded assembly.
Assembly Load(AssemblyName assemblyRef)
Loads an assembly given its System.Reflection.AssemblyName.
assemblyRef:
The System.Reflection.AssemblyName object that describes the
assembly to be loaded.
Returns:
The loaded assembly.
- LoadFile(...)
- Assembly LoadFile(str path, Evidence securityEvidence)
Loads an assembly given its path, loading the assembly into the
domain of the caller using the supplied evidence.
path:
The path of the assembly file.
securityEvidence:
Evidence for loading the assembly.
Returns:
The loaded assembly.
Assembly LoadFile(str path)
Loads the contents of an assembly file on the specified path.
path:
The path of the file to load.
Returns:
The loaded assembly.
- LoadFrom(...)
- Assembly LoadFrom(str assemblyFile, Evidence securityEvidence, Array[Byte] hashValue, AssemblyHashAlgorithm hashAlgorithm)
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.
Returns:
The loaded assembly.
Assembly LoadFrom(str assemblyFile, Evidence securityEvidence)
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.
Returns:
The loaded assembly.
Assembly LoadFrom(str assemblyFile)
Loads an assembly given its file name or path.
assemblyFile:
The name or path of the file that contains the manifest of the
assembly.
Returns:
The loaded assembly.
- LoadModule(...)
- Module LoadModule(self, str moduleName, Array[Byte] rawModule, Array[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.
moduleName:
Name of the module. 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.
Returns:
The loaded module.
Module LoadModule(self, str moduleName, Array[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:
Name of the module. 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.
Returns:
The loaded Module.
- LoadWithPartialName(...)
- Assembly LoadWithPartialName(str 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.
partialName:
The display name of the assembly.
securityEvidence: System.Security.Policy.Evidence for loading the assembly.
Returns:
The loaded assembly. If partialName is not found, this method
returns null.
Assembly LoadWithPartialName(str partialName)
Loads an assembly from the application directory or from the global
assembly cache using a partial name.
partialName:
The display name of the assembly.
Returns:
The loaded assembly. If partialName is not found, this method
returns null.
- ReflectionOnlyLoad(...)
- Assembly ReflectionOnlyLoad(Array[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.
rawAssembly:
An array of type byte that is a COFF-based image containing an
emitted assembly.
Returns:
An System.Reflection.Assembly object that represents the loaded
assembly.
Assembly ReflectionOnlyLoad(str assemblyString)
Loads an assembly into the reflection-only context, given its
display name.
assemblyString:
The display name of the assembly, as returned by the
System.Reflection.AssemblyName.FullName property.
Returns:
An System.Reflection.Assembly object that represents the loaded
assembly.
- ReflectionOnlyLoadFrom(...)
- Assembly ReflectionOnlyLoadFrom(str assemblyFile)
Loads an assembly into the reflection-only context, given its path.
assemblyFile:
The path of the file that contains the manifest of the assembly.
Returns:
An System.Reflection.Assembly object that represents the loaded
assembly.
- ToString(...)
- str ToString(self)
Returns the full name of the assembly, also known as the display
name.
Returns:
The full name of the assembly, or the class name if the full name
of the assembly cannot be determined.
- __dir__(...)
- list __dir__(Assembly self)
- __eq__(...)
- x.__eq__(y) <==> x==y
- __ne__(...)
- bool __ne__(object x, object y)
- __reduce_ex__(...)
- helper for pickle
- __repr__(...)
- object __repr__(Assembly self)
Data descriptors inherited from System.Reflection in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.Assembly:
- EscapedCodeBase
- Gets the URI, including escape characters, that represents the codebase.
Get: str EscapedCodeBase(self)
- Evidence
- Gets the evidence for this assembly.
Get: Evidence Evidence(self)
- FullName
- Gets the display name of the assembly.
Get: str FullName(self)
- GlobalAssemblyCache
- Gets a value indicating whether the assembly was loaded from the global assembly cache.
Get: bool GlobalAssemblyCache(self)
- HostContext
- Gets the host context with which the assembly was loaded.
Get: Int64 HostContext(self)
- ManifestModule
- Gets the module that contains the manifest for the current assembly.
Get: Module ManifestModule(self)
- ModuleResolve
- Occurs when the common language runtime class loader cannot resolve a reference to an internal module of an assembly through normal means.
- ReflectionOnly
- Gets a System.Boolean value indicating whether this assembly was loaded into the reflection-only context.
Get: bool ReflectionOnly(self)
Methods inherited from System.Runtime.InteropServices in mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089._AssemblyBuilder:
- GetIDsOfNames(...)
- Guid GetIDsOfNames(self, Guid riid, IntPtr rgszNames, UInt32 cNames, UInt32 lcid, IntPtr rgDispId)
- GetTypeInfo(...)
- GetTypeInfo(self, UInt32 iTInfo, UInt32 lcid, IntPtr ppTInfo)
Retrieves the type information for an object, which can be used to
get the type information for an interface.
iTInfo:
The type information to return.
lcid:
The locale identifier for the type information.
ppTInfo:
A pointer to the requested type information object.
- GetTypeInfoCount(...)
- UInt32 GetTypeInfoCount(self)
- Invoke(...)
- Guid Invoke(self, UInt32 dispIdMember, Guid riid, UInt32 lcid, Int16 wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr)
| |