Share via


ISupportedChangesService 介面

定義

可以使用 從 ServicesGetService<TWorkspaceService>() 取得。

public interface ISupportedChangesService : Microsoft.CodeAnalysis.Host.IWorkspaceService
type ISupportedChangesService = interface
    interface IWorkspaceService
Public Interface ISupportedChangesService
Implements IWorkspaceService
實作

方法

CanApplyChange(ApplyChangesKind)

判斷 方法是否支援 TryApplyChanges(Solution) 特定類型的變更。

CanApplyCompilationOptionChange(CompilationOptions, CompilationOptions, Project)

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

CanApplyParseOptionChange(ParseOptions, ParseOptions, Project)

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

適用於