共用方式為


CompilationReference.WithEmbedInteropTypes(Boolean) 方法

定義

傳回具有指定 Interop 類型內嵌之參考的實例。

public:
 Microsoft::CodeAnalysis::CompilationReference ^ WithEmbedInteropTypes(bool value);
public Microsoft.CodeAnalysis.CompilationReference WithEmbedInteropTypes (bool value);
override this.WithEmbedInteropTypes : bool -> Microsoft.CodeAnalysis.CompilationReference
Public Function WithEmbedInteropTypes (value As Boolean) As CompilationReference

參數

value
Boolean

的新值 EmbedInteropTypes

傳回

例外狀況

Interop 類型無法從模組內嵌。

適用於