共用方式為


ISupportedChangesService.CanApplyCompilationOptionChange 方法

定義

呼叫 TryApplyChanges(Solution) 期間呼叫 ,以判斷是否允許特定的變更 CompilationOptions

public bool CanApplyCompilationOptionChange (Microsoft.CodeAnalysis.CompilationOptions oldOptions, Microsoft.CodeAnalysis.CompilationOptions newOptions, Microsoft.CodeAnalysis.Project project);
abstract member CanApplyCompilationOptionChange : Microsoft.CodeAnalysis.CompilationOptions * Microsoft.CodeAnalysis.CompilationOptions * Microsoft.CodeAnalysis.Project -> bool
Public Function CanApplyCompilationOptionChange (oldOptions As CompilationOptions, newOptions As CompilationOptions, project As Project) As Boolean

參數

oldOptions
CompilationOptions

變更之前的舊 CompilationOptions 專案。

newOptions
CompilationOptions

傳遞至 TryApplyChanges(Solution) 之專案的新 CompilationOptions

project
Project

傳遞至 TryApplyChanges(Solution)Solution 中包含的專案。

傳回

適用於