PortableExecutableReference Class

Definition

Reference to metadata stored in the standard ECMA-335 metadata format.

C#
public abstract class PortableExecutableReference : Microsoft.CodeAnalysis.MetadataReference
Inheritance
PortableExecutableReference

Constructors

Properties

Display

Display string used in error messages to identity the reference.

FilePath

Path describing the location of the metadata, or null if the metadata have no location.

Properties (Inherited from MetadataReference)

Methods

CreateDocumentationProvider()

Create documentation provider for the reference.

GetMetadata()

Returns a copy of the Metadata object this PortableExecutableReference contains. This copy does not need to be Dispose()d.

GetMetadataId()

Returns the MetadataId for this reference's Metadata. This will be equivalent to calling GetMetadata().Id, but can be done more efficiently.

GetMetadataImpl()

Get metadata representation for the PE file.

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.

WithPropertiesImpl(MetadataReferenceProperties)

Returns an instance of the reference with specified properties.

Applies to

Product Versions
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0