ExportCodeRefactoringProviderAttribute 类

定义

使用此属性声明实现 CodeRefactoringProvider ,以便主机可以发现它。

public ref class ExportCodeRefactoringProviderAttribute sealed : System::Composition::ExportAttribute
[System.Composition.MetadataAttribute]
public sealed class ExportCodeRefactoringProviderAttribute : System.Composition.ExportAttribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Composition.MetadataAttribute]
public sealed class ExportCodeRefactoringProviderAttribute : System.Composition.ExportAttribute
[System.Composition.MetadataAttribute]
[System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)]
public sealed class ExportCodeRefactoringProviderAttribute : System.Composition.ExportAttribute
[<System.Composition.MetadataAttribute>]
type ExportCodeRefactoringProviderAttribute = class
    inherit ExportAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.Composition.MetadataAttribute>]
type ExportCodeRefactoringProviderAttribute = class
    inherit ExportAttribute
[<System.Composition.MetadataAttribute>]
[<System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)>]
type ExportCodeRefactoringProviderAttribute = class
    inherit ExportAttribute
Public NotInheritable Class ExportCodeRefactoringProviderAttribute
Inherits ExportAttribute
继承
ExportCodeRefactoringProviderAttribute
属性

构造函数

ExportCodeRefactoringProviderAttribute(String, String[])

用于指定代码重构提供程序的可用性的属性构造函数。

属性

DocumentExtensions

此提供程序可以提供重构的文档扩展。 每个扩展字符串都必须包含前导句点,例如“.txt”、“.xaml”、“.editorconfig”等。默认情况下,此值为 null,不考虑文档扩展来确定重构的适用性。

DocumentKinds

此提供程序可以提供重构的文档类型。 请参阅 TextDocumentKind。 默认情况下,提供程序仅支持对源文档 Document进行重构。

Languages

此提供程序可以提供重构的源语言。 请参阅 LanguageNames

Name

CodeRefactoringProvider 的名称。

适用于