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
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.