共用方式為


ExportCodeRefactoringProviderAttribute 類別

定義

使用這個屬性來宣告 CodeRefactoringProvider 實作,讓主機可以探索它。

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
繼承
ExportCodeRefactoringProviderAttribute
屬性

建構函式

ExportCodeRefactoringProviderAttribute(String, String[])

用來指定程式碼重構提供者可用性的屬性建構函式。

屬性

DocumentExtensions

此提供者可以提供重構的檔延伸模組。 每個擴充字串都必須包含前置句號,例如 「.txt」、「.xaml」、「.editorconfig」 等。根據預設,此值為 Null,而且不會考慮檔延伸模組來判斷重構的適用性。

DocumentKinds

此提供者可以提供重構的檔種類。 請參閱 TextDocumentKind。 根據預設,提供者僅支援針對來源文件進行重構。 Document

Languages

這個提供者可以提供重構的來來源語言。 請參閱 LanguageNames

Name

CodeRefactoringProvider 的名稱。

適用於