共用方式為


ExportCodeFixProviderAttribute.DocumentExtensions 屬性

定義

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

public string[]? DocumentExtensions { get; set; }
member this.DocumentExtensions : string[] with get, set
Public Property DocumentExtensions As String()

屬性值

String[]

適用於