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.


Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public class Assembly

The Assembly type exposes the following members.

Public methodAssemblyInitializes a new instance of the Assembly class.

Public propertyFullNameGets the display name of the assembly.

Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberGetAssemblyGets the currently loaded assembly in which the specified class is defined.
Public methodStatic memberGetExecutingAssemblyGets the assembly that contains the code that is currently executing.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetNameGets an AssemblyName for this assembly.
Public methodGetSatelliteAssemblyGets the satellite assembly for the specified culture.
Public methodGetType()()()()Gets the Type of the current instance. (Inherited from Object.)
Public methodGetType(String)Gets the Type object with the specified name in the assembly instance.
Public methodGetType(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.
Public methodGetTypesGets the types defined in this assembly.
Public methodStatic memberLoad(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.
Public methodStatic memberLoad(String)Loads an assembly given the long form of its name.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.