共用方式為


ISupportedChangesService.CanApplyParseOptionChange 方法

定義

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

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

參數

oldOptions
ParseOptions

變更之前的舊 ParseOptions 專案。

newOptions
ParseOptions

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

project
Project

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

傳回

適用於