Share via


AssemblyMetadata Class

Definition

Represents an immutable snapshot of assembly CLI metadata.

public ref class AssemblyMetadata sealed : Microsoft::CodeAnalysis::Metadata
public sealed class AssemblyMetadata : Microsoft.CodeAnalysis.Metadata
type AssemblyMetadata = class
    inherit Metadata
Public NotInheritable Class AssemblyMetadata
Inherits Metadata
Inheritance
AssemblyMetadata

Properties

Id

The id for this metadata instance. If two metadata instances have the same id, then they have the same content. If they have different ids they may or may not have the same content.

(Inherited from Metadata)
Kind

Returns the metadata kind. MetadataImageKind

Methods

CommonCopy() (Inherited from Metadata)
Copy()

Creates a copy of this object.

(Inherited from Metadata)
Create(IEnumerable<ModuleMetadata>)

Creates a multi-module assembly.

Create(ImmutableArray<ModuleMetadata>)

Creates a multi-module assembly.

Create(ModuleMetadata)

Creates a single-module assembly.

Create(ModuleMetadata[])

Creates a multi-module assembly.

CreateFromFile(String)

Finds all modules of an assembly on a specified path and builds an instance of AssemblyMetadata that represents them.

CreateFromImage(IEnumerable<Byte>)

Creates a single-module assembly.

CreateFromImage(ImmutableArray<Byte>)

Creates a single-module assembly.

CreateFromStream(Stream, Boolean)

Creates a single-module assembly.

CreateFromStream(Stream, PEStreamOptions)

Creates a single-module assembly.

Dispose()

Disposes all modules contained in the assembly.

GetModules()

Modules comprising this assembly. The first module is the manifest module.

GetReference(DocumentationProvider, ImmutableArray<String>, Boolean, String, String)

Creates a reference to the assembly metadata.

Applies to