ISupportedChangesService.CanApplyCompilationOptionChange 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呼叫 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 中包含的專案。