Sdílet prostřednictvím


MetadataReference Class

Definition

Represents metadata image reference.

public ref class MetadataReference abstract
public abstract class MetadataReference
type MetadataReference = class
Public MustInherit Class MetadataReference
Inheritance
MetadataReference
Derived

Remarks

Represents a logical location of the image, not the content of the image. The content might change in time. A snapshot is taken when the compiler queries the reference for its metadata.

Constructors

MetadataReference(MetadataReferenceProperties)

Properties

Display

Path or name used in error messages to identity the reference.

Properties

Methods

CreateFromAssembly(Assembly, MetadataReferenceProperties, DocumentationProvider)
Obsolete.

Creates a reference to a loaded assembly.

CreateFromAssembly(Assembly)
Obsolete.

Creates a reference to a loaded assembly.

CreateFromFile(String, MetadataReferenceProperties, DocumentationProvider)

Creates a reference to an assembly or standalone module stored in a file. Reads the content of the file into memory.

CreateFromImage(IEnumerable<Byte>, MetadataReferenceProperties, DocumentationProvider, String)

Creates a reference to a single-module assembly or a standalone module stored in memory.

CreateFromImage(ImmutableArray<Byte>, MetadataReferenceProperties, DocumentationProvider, String)

Creates a reference to a single-module assembly or a standalone module stored in memory.

CreateFromStream(Stream, MetadataReferenceProperties, DocumentationProvider, String)

Creates a reference to a single-module assembly or a stand-alone module from data in specified stream. Reads the content of the stream into memory and closes the stream upon return.

WithAliases(IEnumerable<String>)

Returns an instance of the reference with specified aliases.

WithAliases(ImmutableArray<String>)

Returns an instance of the reference with specified aliases.

WithEmbedInteropTypes(Boolean)

Returns an instance of the reference with specified interop types embedding.

WithProperties(MetadataReferenceProperties)

Returns an instance of the reference with specified properties, or this instance if properties haven't changed.

Applies to