Share via


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
Public method Assembly Initializes a new instance of the Assembly class.

Top

Properties

  Name Description
Public property FullName Gets the display name of the assembly.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetAssembly Gets the currently loaded assembly in which the specified class is defined.
Public methodStatic member GetExecutingAssembly Gets the assembly that contains the code that is currently executing.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetName Gets an AssemblyName for this assembly.
Public method GetSatelliteAssembly Gets the satellite assembly for the specified culture.
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.
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.
Public method GetTypes Gets the types defined in this assembly.
Public methodStatic member 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.
Public methodStatic member Load(String) Loads an assembly given the long form of its name.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.

See Also

Reference

System.Reflection Namespace