Click or drag to resize

ModuleMetadata Class

Represents an immutable snapshot of module CLI metadata.
Inheritance Hierarchy

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
public sealed class ModuleMetadata : Metadata

The ModuleMetadata type exposes the following members.

Public propertyId
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.)
Public propertyKind
Returns the MetadataImageKind for this instance.
(Overrides MetadataKind.)
Public propertyName
Name of the module.
Public methodCopy
Creates a copy of this object.
(Inherited from Metadata.)
Public methodStatic memberCreateFromFile
Creates metadata module from a file containing a portable executable image.
Public methodStatic memberCreateFromImage(IEnumerableT)
Public methodStatic memberCreateFromImage(ImmutableArrayByte)
Create metadata module from a byte array.
Public methodStatic memberCreateFromImage(IntPtr, Int32)
Create metadata module from a raw memory pointer to a PE image or an object file.
Public methodStatic memberCreateFromMetadata
Create metadata module from a raw memory pointer to metadata directory of a PE image or .cormeta section of an object file. Only manifest modules are currently supported.
Public methodStatic memberCreateFromStream(Stream, Boolean)
Create metadata module from a stream.
Public methodStatic memberCreateFromStream(Stream, PEStreamOptions)
Create metadata module from a stream.
Public methodDispose
Frees memory and handles allocated for the module.
(Overrides MetadataDispose.)
Public methodGetMetadataReader
Returns the metadata reader.
Public methodGetModuleNames
Returns the file names of linked managed modules.
Public methodGetModuleVersionId
Version of the module content.
Public methodGetReference
Creates a reference to the module metadata.
This object may allocate significant resources or lock files depending upon how it is constructed.
See Also