RefactoringContributor<TContributorInput> 类

此类接受 ContributorInput 参数,提出更改建议,并创建要处理的其他 ContributorInput。 此类执行向管理员建议更改并通知管理员更改情况的大部分任务。 有关更多信息,请参见创建自定义数据库重构类型或目标

此 API 不兼容 CLS。 

继承层次结构

System.Object
  Microsoft.VisualStudio.Data.Schema.Package.Refactoring.RefactoringContributor
    Microsoft.VisualStudio.Data.Schema.Package.Refactoring.RefactoringContributor<TContributorInput>

命名空间:  Microsoft.VisualStudio.Data.Schema.Package.Refactoring
程序集:  Microsoft.VisualStudio.Data.Schema.Package(在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
Public MustInherit Class RefactoringContributor(Of TContributorInput As ContributorInput) _
    Inherits RefactoringContributor
[CLSCompliantAttribute(false)]
public abstract class RefactoringContributor<TContributorInput> : RefactoringContributor
where TContributorInput : ContributorInput
[CLSCompliantAttribute(false)]
generic<typename TContributorInput>
where TContributorInput : ContributorInput
public ref class RefactoringContributor abstract : public RefactoringContributor
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
type RefactoringContributor<'TContributorInput when 'TContributorInput : ContributorInput> =  
    class
        inherit RefactoringContributor
    end
JScript 不支持泛型类型或方法。

类型参数

  • TContributorInput

RefactoringContributor<TContributorInput> 类型公开以下成员。

构造函数

  名称 说明
受保护的方法 RefactoringContributor<TContributorInput> 初始化 RefactoringContributor<TContributorInput> 类的新实例。

页首

属性

  名称 说明
公共属性 PreviewGroup 获取或设置与此参与者返回的 ChangeProposals 相关联的重构预览组实例。 (继承自 RefactoringContributor。)

页首

方法

  名称 说明
受保护的方法 ContributeChanges
公共方法 Equals 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnBeforeAnalysis 启用一个方案,在该方案中另一个参与者可能必须在分析启动之前执行一些准备工作(例如,保存已更新文件)。
受保护的方法 OnPostApplyChanges 使参与者可以在应用选定更改建议之后执行操作。
受保护的方法 OnPreApplyChanges OnPreApplyChanges 允许参与者在应用选定更改建议之前执行操作。
受保护的方法 RegisterGeneratedInputType 注册此参与者在分析期间生成的任何可能的传播输入类型。 (继承自 RefactoringContributor。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.VisualStudio.Data.Schema.Package.Refactoring 命名空间