Udostępnij za pośrednictwem


ExportCodeRefactoringProviderAttribute Class

Definition

Use this attribute to declare a CodeRefactoringProvider implementation so that it can be discovered by the host.

public ref class ExportCodeRefactoringProviderAttribute sealed : 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.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
Inheritance
ExportCodeRefactoringProviderAttribute
Attributes

Constructors

ExportCodeRefactoringProviderAttribute(String, String[])

Attribute constructor used to specify availability of a code refactoring provider.

Properties

DocumentExtensions

The document extensions for which this provider can provide refactorings. Each extension string must include the leading period, for example, ".txt", ".xaml", ".editorconfig", etc. By default, this value is null and the document extension is not considered to determine applicability of refactorings.

DocumentKinds

The document kinds for which this provider can provide refactorings. See TextDocumentKind. By default, the provider supports refactorings only for source documents, Document.

Languages

The source languages for which this provider can provide refactorings. See LanguageNames.

Name

The name of the CodeRefactoringProvider.

Applies to