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

适用于