AssemblyBuilder Methods

The AssemblyBuilder type exposes the following members.

  Name Description
Public method AddResourceFile(String, String) Adds an existing resource file to this assembly.
Public method AddResourceFile(String, String, ResourceAttributes) Adds an existing resource file to this assembly.
Public method CreateInstance(String) Locates the specified type from this assembly and creates an instance of it using the system activator, using case-sensitive search. (Inherited from Assembly.)
Public method CreateInstance(String, Boolean) Locates the specified type from this assembly and creates an instance of it using the system activator, with optional case-sensitive search. (Inherited from Assembly.)
Public method CreateInstance(String, Boolean, BindingFlags, Binder, Object[], CultureInfo, Object[]) 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. (Inherited from Assembly.)
Public method Static member DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) Defines a dynamic assembly that has the specified name and access rights.
Public method Static member DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, IEnumerable<CustomAttributeBuilder>) Defines a new assembly that has the specified name, access rights, and attributes.
Public method DefineDynamicModule(String) Defines a named transient dynamic module in this assembly.
Public method DefineDynamicModule(String, Boolean) Defines a named transient dynamic module in this assembly and specifies whether symbol information should be emitted.
Public method DefineDynamicModule(String, String) Defines a persistable dynamic module with the given name that will be saved to the specified file. No symbol information is emitted.
Public method DefineDynamicModule(String, String, Boolean) 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.
Public method DefineResource(String, String, String) Defines a standalone managed resource for this assembly with the default public resource attribute.
Public method DefineResource(String, String, String, ResourceAttributes) Defines a standalone managed resource for this assembly. Attributes can be specified for the managed resource.
Public method DefineUnmanagedResource(Byte[]) Defines an unmanaged resource for this assembly as an opaque blob of bytes.
Public method DefineUnmanagedResource(String) Defines an unmanaged resource file for this assembly given the name of the resource file.
Public method DefineVersionInfoResource() Defines an unmanaged version information resource using the information specified in the assembly's AssemblyName object and the assembly's custom attributes.
Public method DefineVersionInfoResource(String, String, String, String, String) Defines an unmanaged version information resource for this assembly with the given specifications.
Public method Equals Returns a value that indicates whether this instance is equal to the specified object. (Overrides Assembly.Equals(Object).)
Public method GetCustomAttributes(Boolean) Returns all the custom attributes that have been applied to the current AssemblyBuilder. (Overrides Assembly.GetCustomAttributes(Boolean).)
Public method GetCustomAttributes(Type, Boolean) Returns all the custom attributes that have been applied to the current AssemblyBuilder, and that derive from a specified attribute type. (Overrides Assembly.GetCustomAttributes(Type, Boolean).)
Public method GetCustomAttributesData Returns CustomAttributeData objects that contain information about the attributes that have been applied to the current AssemblyBuilder. (Overrides Assembly.GetCustomAttributesData().)
Public method GetDynamicModule Returns the dynamic module with the specified name.
Public method GetExportedTypes Gets the exported types defined in this assembly. (Overrides Assembly.GetExportedTypes().)
Public method GetFile Gets a FileStream for the specified file in the file table of the manifest of this assembly. (Overrides Assembly.GetFile(String).)
Public method GetFiles() Gets the files in the file table of an assembly manifest. (Inherited from Assembly.)
Public method GetFiles(Boolean) Gets the files in the file table of an assembly manifest, specifying whether to include resource modules. (Overrides Assembly.GetFiles(Boolean).)
Public method GetHashCode Returns the hash code for this instance. (Overrides Assembly.GetHashCode().)
Public method GetLoadedModules() Gets all the loaded modules that are part of this assembly. (Inherited from Assembly.)
Public method GetLoadedModules(Boolean) Returns all the loaded modules that are part of this assembly, and optionally includes resource modules. (Overrides Assembly.GetLoadedModules(Boolean).)
Public method GetManifestResourceInfo Returns information about how the given resource has been persisted. (Overrides Assembly.GetManifestResourceInfo(String).)
Public method GetManifestResourceNames Loads the specified manifest resource from this assembly. (Overrides Assembly.GetManifestResourceNames().)
Public method GetManifestResourceStream(String) Loads the specified manifest resource from this assembly. (Overrides Assembly.GetManifestResourceStream(String).)
Public method GetManifestResourceStream(Type, String) Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly. (Overrides Assembly.GetManifestResourceStream(Type, String).)
Public method GetModule Gets the specified module in this assembly. (Overrides Assembly.GetModule(String).)
Public method GetModules() Gets all the modules that are part of this assembly. (Inherited from Assembly.)
Public method GetModules(Boolean) Gets all the modules that are part of this assembly, and optionally includes resource modules. (Overrides Assembly.GetModules(Boolean).)
Public method GetName() Gets an AssemblyName for this assembly. (Inherited from Assembly.)
Public method GetName(Boolean) Gets the AssemblyName that was specified when the current dynamic assembly was created, and sets the code base as specified. (Overrides Assembly.GetName(Boolean).)
Public method GetObjectData Gets serialization information with all of the data needed to reinstantiate this assembly. (Inherited from Assembly.)
Public method GetReferencedAssemblies Gets an incomplete list of AssemblyName objects for the assemblies that are referenced by this AssemblyBuilder. (Overrides Assembly.GetReferencedAssemblies().)
Public method GetSatelliteAssembly(CultureInfo) Gets the satellite assembly for the specified culture. (Overrides Assembly.GetSatelliteAssembly(CultureInfo).)
Public method GetSatelliteAssembly(CultureInfo, Version) Gets the specified version of the satellite assembly for the specified culture. (Overrides Assembly.GetSatelliteAssembly(CultureInfo, Version).)
Public method GetType() Gets the Type of the current instance. (Inherited from Object.)
Public method GetType(String) Gets the Type object with the specified name in the assembly instance. (Inherited from Assembly.)
Public method GetType(String, Boolean) Gets the Type object with the specified name in the assembly instance and optionally throws an exception if the type is not found. (Inherited from Assembly.)
Public method GetType(String, Boolean, Boolean) Gets the specified type from the types that have been defined and created in the current AssemblyBuilder. (Overrides Assembly.GetType(String, Boolean, Boolean).)
Public method GetTypes Gets the types defined in this assembly. (Inherited from Assembly.)
Public method IsDefined Returns a value that indicates whether one or more instances of the specified attribute type is applied to this member. (Overrides Assembly.IsDefined(Type, Boolean).)
Public method LoadModule(String, Byte[]) Loads the module, internal to this assembly, with a common object file format (COFF)-based image containing an emitted module, or a resource file. (Inherited from Assembly.)
Public method LoadModule(String, Byte[], Byte[]) 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. (Inherited from Assembly.)
Public method Save(String) Saves this dynamic assembly to disk.
Public method Save(String, PortableExecutableKinds, ImageFileMachine) Saves this dynamic assembly to disk, specifying the nature of code in the assembly's executables and the target platform.
Public method SetCustomAttribute(CustomAttributeBuilder) Set a custom attribute on this assembly using a custom attribute builder.
Public method SetCustomAttribute(ConstructorInfo, Byte[]) Set a custom attribute on this assembly using a specified custom attribute blob.
Public method SetEntryPoint(MethodInfo) Sets the entry point for this dynamic assembly, assuming that a console application is being built.
Public method SetEntryPoint(MethodInfo, PEFileKinds) Sets the entry point for this assembly and defines the type of the portable executable (PE file) being built.
Public method ToString Returns the full name of the assembly, also known as the display name. (Inherited from Assembly.)
Top

  Name Description
Public Extension Method GetCustomAttribute(Type) Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute(Type) Overloaded. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute<T>() Overloaded. Retrieves a custom attribute of a specified type that is applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttribute<T>() Overloaded. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes() Overloaded. Retrieves a collection of custom attributes that are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes() Overloaded. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes(Type) Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes(Type) Overloaded. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes<T>() Overloaded. Retrieves a collection of custom attributes of a specified type that are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method GetCustomAttributes<T>() Overloaded. (Defined by CustomAttributeExtensions.)
Public Extension Method IsDefined(Type) Overloaded. Indicates whether custom attributes of a specified type are applied to a specified assembly. (Defined by CustomAttributeExtensions.)
Public Extension Method IsDefined(Type) Overloaded. (Defined by CustomAttributeExtensions.)
Top

  Name Description
Explicit interface implemetation Private method _Assembly.GetType Returns the type of the current instance. (Inherited from Assembly.)
Explicit interface implemetation Private method _AssemblyBuilder.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implemetation Private method _AssemblyBuilder.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implemetation Private method _AssemblyBuilder.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implemetation Private method _AssemblyBuilder.Invoke Provides access to properties and methods exposed by an object.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft