共用方式為


MetadataReferenceProperties.WithEmbedInteropTypes(Boolean) 方法

定義

MetadataReferenceProperties 回 ,其 EmbedInteropTypes 設定為指定的值。

public:
 Microsoft::CodeAnalysis::MetadataReferenceProperties WithEmbedInteropTypes(bool embedInteropTypes);
public Microsoft.CodeAnalysis.MetadataReferenceProperties WithEmbedInteropTypes (bool embedInteropTypes);
member this.WithEmbedInteropTypes : bool -> Microsoft.CodeAnalysis.MetadataReferenceProperties
Public Function WithEmbedInteropTypes (embedInteropTypes As Boolean) As MetadataReferenceProperties

參數

embedInteropTypes
Boolean

傳回

例外狀況

KindModule ,因為 Interop 類型無法從模組內嵌。

適用於