語言

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

傳回

例外狀況

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

適用於