RefactoringContributor<TContributorInput>.OnPreApplyChanges 方法
OnPreApplyChanges 允许参与者在应用选定更改建议之前执行操作。
命名空间: Microsoft.VisualStudio.Data.Schema.Package.Refactoring
程序集: Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)
语法
声明
Protected Overridable Sub OnPreApplyChanges ( _
changes As ApplyChangesEventArgs _
)
protected virtual void OnPreApplyChanges(
ApplyChangesEventArgs changes
)
protected:
virtual void OnPreApplyChanges(
ApplyChangesEventArgs^ changes
)
abstract OnPreApplyChanges :
changes:ApplyChangesEventArgs -> unit
override OnPreApplyChanges :
changes:ApplyChangesEventArgs -> unit
protected function OnPreApplyChanges(
changes : ApplyChangesEventArgs
)
参数
- changes
类型:Microsoft.VisualStudio.Data.Schema.Package.Refactoring.ApplyChangesEventArgs
包含选定更改建议的事件参数。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。