ExportCodeFixProviderAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Use this attribute to declare a CodeFixProvider implementation so that it can be discovered by the host.
public ref class ExportCodeFixProviderAttribute sealed : System::Composition::ExportAttribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Composition.MetadataAttribute]
public sealed class ExportCodeFixProviderAttribute : System.Composition.ExportAttribute
[System.Composition.MetadataAttribute]
[System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)]
public sealed class ExportCodeFixProviderAttribute : System.Composition.ExportAttribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.Composition.MetadataAttribute>]
type ExportCodeFixProviderAttribute = class
inherit ExportAttribute
[<System.Composition.MetadataAttribute>]
[<System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)>]
type ExportCodeFixProviderAttribute = class
inherit ExportAttribute
Public NotInheritable Class ExportCodeFixProviderAttribute
Inherits ExportAttribute
- Inheritance
-
ExportCodeFixProviderAttribute
- Attributes
Constructors
ExportCodeFixProviderAttribute(String, String[]) |
Attribute constructor used to specify automatic application of a code fix provider. |
Properties
DocumentExtensions |
The document extensions for which this provider can provide code fixes. 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 code fixes. |
DocumentKinds |
The document kinds for which this provider can provide code fixes. See TextDocumentKind. By default, the provider supports code fixes only for source documents, Document. Provide string representation of the documents kinds for this property, for example: DocumentKinds = new[] { nameof(TextDocumentKind.AdditionalDocument) } |
Languages |
The source languages this provider can provide fixes for. See LanguageNames. |
Name |
Optional name of the CodeFixProvider. |