共用方式為


Compilation.WithOptions(CompilationOptions) 方法

定義

使用指定的編譯選項建立新的編譯。

public:
 Microsoft::CodeAnalysis::Compilation ^ WithOptions(Microsoft::CodeAnalysis::CompilationOptions ^ options);
public Microsoft.CodeAnalysis.Compilation WithOptions (Microsoft.CodeAnalysis.CompilationOptions options);
member this.WithOptions : Microsoft.CodeAnalysis.CompilationOptions -> Microsoft.CodeAnalysis.Compilation
Public Function WithOptions (options As CompilationOptions) As Compilation

參數

options
CompilationOptions

新的選項。

傳回

新的編譯。

適用於