MetadataReferenceProperties Constructor
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.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.