Delen via


MetadataReferenceProperties Constructor

Definition

Initializes reference properties.

public MetadataReferenceProperties (Microsoft.CodeAnalysis.MetadataImageKind kind = Microsoft.CodeAnalysis.MetadataImageKind.Assembly, System.Collections.Immutable.ImmutableArray<string> aliases = default, bool embedInteropTypes = false);
new Microsoft.CodeAnalysis.MetadataReferenceProperties : Microsoft.CodeAnalysis.MetadataImageKind * System.Collections.Immutable.ImmutableArray<string> * bool -> Microsoft.CodeAnalysis.MetadataReferenceProperties
Public Sub New (Optional kind As MetadataImageKind = Microsoft.CodeAnalysis.MetadataImageKind.Assembly, Optional aliases As ImmutableArray(Of String) = Nothing, Optional embedInteropTypes As Boolean = false)

Parameters

kind
MetadataImageKind

The image kind - assembly or module.

aliases
ImmutableArray<String>

Assembly aliases. Can't be set for a module.

embedInteropTypes
Boolean

True to embed interop types from the referenced assembly to the referencing compilation. Must be false for a module.

Applies to