共用方式為


Workspace.OnCompilationOptionsChanged(ProjectId, CompilationOptions) 方法

定義

在主機環境中變更專案的編譯選項時,呼叫這個方法。

protected public:
 void OnCompilationOptionsChanged(Microsoft::CodeAnalysis::ProjectId ^ projectId, Microsoft::CodeAnalysis::CompilationOptions ^ options);
protected internal void OnCompilationOptionsChanged (Microsoft.CodeAnalysis.ProjectId projectId, Microsoft.CodeAnalysis.CompilationOptions options);
member this.OnCompilationOptionsChanged : Microsoft.CodeAnalysis.ProjectId * Microsoft.CodeAnalysis.CompilationOptions -> unit
Protected Friend Sub OnCompilationOptionsChanged (projectId As ProjectId, options As CompilationOptions)

參數

projectId
ProjectId

適用於