Assembly Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents an assembly, which is a reusable, versionable, and self-describing building block of a common language runtime application.
Inheritance Hierarchy
System. . :: . .Object
System.Reflection..::..Assembly
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class Assembly
[SerializableAttribute]
public class Assembly
[SerializableAttribute]
public ref class Assembly
[<SerializableAttribute>]
type Assembly = class end
public class Assembly
The Assembly type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Assembly | Initializes a new instance of the Assembly class. |
Top
Properties
Name | Description | |
---|---|---|
FullName | Gets the display name of the assembly. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAssembly | Gets the currently loaded assembly in which the specified class is defined. | |
GetExecutingAssembly | Gets the assembly that contains the code that is currently executing. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetName | Gets an AssemblyName for this assembly. | |
GetSatelliteAssembly | Gets the satellite assembly for the specified culture. | |
GetType() () () () | Gets the Type of the current instance. (Inherited from Object.) | |
GetType(String) | Gets the Type object with the specified name in the assembly instance. | |
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. | |
GetTypes | Gets the types defined in this assembly. | |
Load(array<Byte> [] () [] []) | 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. | |
Load(String) | Loads an assembly given the long form of its name. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
Use the Assembly class to load assemblies, to explore the metadata and constituent parts of assemblies, to discover the types contained in assemblies, and to create instances of those types.
To get an Assembly object for the currently executing assembly, use the GetExecutingAssembly method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.