PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Code­Model Namespace / Assembly­Envelope Class

AssemblyEnvelope Class

Represents an assembly understood basically, internally, as a collection of modules (ModuleDeclaration) and, externally, as a collection of exported types.
Inheritance Hierarchy

Namespace:  PostSharp.Sdk.CodeModel
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
public sealed class AssemblyEnvelope : Element, 
	IAssembly, IAssemblyName, ITaggable, IElement, INamed, 
	IAssemblyIdentity, IDisposable

The AssemblyEnvelope type exposes the following members.

Public propertyCulture
Public propertyGuid
Public propertyIsReferenceAssembly
Public propertyIsRetargetable
Public propertyIsStronglyNamed
Public propertyLocation
Gets the full path of the file from which the assembly has been loaded.
Public propertyManifestModule
Gets the module containing the assembly manifest (AssemblyManifestDeclaration).
Public propertyModules
Gets the collection of modules contained in this assembly.
Public propertyName
Public propertyPath
Public propertyProcessorArchitecture
Public propertyTargetFramework
Public propertyVersion
Public methodClearCache
Clear the cache (typically mapping to System.Reflection or, if the current element is a reference, to the related definition) of the current Element and all its children.
(Inherited from Element.)
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(IAssembly)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetPublicKey
Public methodGetPublicKeyToken
Public methodGetSystemAssembly
Gets the reflection Assembly corresponding to the current instance.
Public methodGetTag<T>
Gets a tag associated with the current declaration.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeDefinition(String)
Gets a type defined in this assembly given its name.
Public methodGetTypeDefinition(String, BindingOptions)
Gets a type defined in this assembly given its name.
Public methodMatchesReference
Public methodSetTag<T>
Set a tag to the current declaration.
Public methodToString
Returns a string that represents the current object.
(Overrides Object.ToString().)
Extension Methods
Public Extension MethodDefinitionMatchesReference (Defined by CompareExtensions.)
Public Extension MethodDefinitionMatchesReferenceResolved (Defined by CompareExtensions.)
Public Extension MethodEquals (Defined by AssemblyNameExtensions.)
Public Extension MethodEvaluateAssemblyMatchResolved (Defined by CompareExtensions.)
Public Extension MethodGetBindingIdentity
Gets the binding identity of an assembly represented by an IAssemblyName.
(Defined by AssemblyNameExtensions.)
Public Extension MethodGetFullName
Gets the full name of an assembly.
(Defined by AssemblyNameExtensions.)
Public Extension MethodGetReferenceName
Returns a string that can be passed to Load(AssemblyName)
(Defined by AssemblyNameExtensions.)
Public Extension MethodSetBindingContext(BindingContext)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodSetBindingContext(BindingContext)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodSetRetargetable (Defined by AssemblyNameExtensions.)
Public Extension MethodToAssemblyIdentity(String, Guid, FrameworkName)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodToAssemblyIdentity(String, Guid, FrameworkName, Boolean)Overloaded. (Defined by AssemblyNameExtensions.)
Public Extension MethodToAssemblyName
Converts an IAssemblyName into an AssemblyName.
(Defined by AssemblyNameExtensions.)
Do not mistake for AssemblyManifestDeclaration, which is the assembly manifest and is contained in one of the module of the assembly.
See Also