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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.