Workspace.OnCompilationOptionsChanged(ProjectId, CompilationOptions) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在主機環境中變更專案的編譯選項時,呼叫這個方法。
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
- options
- CompilationOptions