ModuleMetadata Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an immutable snapshot of module CLI metadata.
public ref class ModuleMetadata sealed : Microsoft::CodeAnalysis::Metadata
public sealed class ModuleMetadata : Microsoft.CodeAnalysis.Metadata
type ModuleMetadata = class
inherit Metadata
Public NotInheritable Class ModuleMetadata
Inherits Metadata
- Inheritance
Remarks
This object may allocate significant resources or lock files depending upon how it is constructed.
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) |
IsDisposed |
True if the module has been disposed. |
Kind |
Returns the MetadataImageKind for this instance. |
Name |
Name of the module. |
Methods
CommonCopy() | (Inherited from Metadata) |
Copy() |
Creates a copy of this object. (Inherited from Metadata) |
CreateFromFile(String) |
Creates metadata module from a file containing a portable executable image. |
CreateFromImage(IEnumerable<Byte>) |
Create metadata module from a sequence of bytes. |
CreateFromImage(ImmutableArray<Byte>) |
Create metadata module from a byte array. |
CreateFromImage(IntPtr, Int32) |
Create metadata module from a raw memory pointer to a PE image or an object file. |
CreateFromMetadata(IntPtr, Int32, Action) |
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. |
CreateFromMetadata(IntPtr, Int32, IDisposable, Boolean) |
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. |
CreateFromMetadata(IntPtr, Int32) |
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. |
CreateFromStream(Stream, Boolean) |
Create metadata module from a stream. |
CreateFromStream(Stream, PEStreamOptions) |
Create metadata module from a stream. |
Dispose() |
Frees memory and handles allocated for the module. |
GetMetadataReader() |
Returns the metadata reader. |
GetModuleNames() |
Returns the file names of linked managed modules. |
GetModuleVersionId() |
Version of the module content. |
GetReference(DocumentationProvider, String, String) |
Creates a reference to the module metadata. |