Click or drag to resize

PortableExecutableReference Class



Reference to metadata stored in the standard ECMA-335 metadata format.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysisMetadataReference
    Microsoft.CodeAnalysisPortableExecutableReference

Namespace:  Microsoft.CodeAnalysis
Assembly:  Microsoft.CodeAnalysis (in Microsoft.CodeAnalysis.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public abstract class PortableExecutableReference : MetadataReference

The PortableExecutableReference type exposes the following members.

Constructors
  NameDescription
Protected methodPortableExecutableReference
Initializes a new instance of the PortableExecutableReference class
Top
Properties
  NameDescription
Public propertyDisplay
Display string used in error messages to identity the reference.
(Overrides MetadataReferenceDisplay.)
Public propertyFilePath
Path describing the location of the metadata, or null if the metadata have no location.
Public propertyProperties (Inherited from MetadataReference.)
Top
Methods
  NameDescription
Protected methodCreateDocumentationProvider
Create documentation provider for the reference.
Public methodGetMetadata
Returns a copy of the Metadata object this PortableExecutableReference contains. This copy does not need to be Disposed.
Public methodGetMetadataId
Returns the MetadataId for this reference's Metadata. This will be equivalent to calling GetMetadata.Id, but can be done more efficiently.
Protected methodGetMetadataImpl
Get metadata representation for the PE file.
Public methodWithAliases(IEnumerableT)
Public methodWithAliases(ImmutableArrayString)
Returns an instance of the reference with specified aliases.
Public methodWithEmbedInteropTypes
Returns an instance of the reference with specified interop types embedding.
Public methodWithProperties
Returns an instance of the reference with specified properties, or this instance if properties haven't changed.
Protected methodWithPropertiesImpl
Returns an instance of the reference with specified properties.
Top
See Also