Partager via


ExportCustomFileContextProviderAttribute Constructor

Definition

Initializes a new instance of the ExportCustomFileContextProviderAttribute class.

 ExportCustomFileContextProviderAttribute(Microsoft::VisualStudio::Workspace::CustomContexts::CustomFileContextProviderOptions options, std::wstring const & type, std::Array <std::wstring const &> const & supportedFileExtensions, std::wstring const & customJsonSchemaContent = null, Microsoft::VisualStudio::Workspace::ProviderPriority priority = Microsoft.VisualStudio.Workspace.ProviderPriority.Normal);
public ExportCustomFileContextProviderAttribute (Microsoft.VisualStudio.Workspace.CustomContexts.CustomFileContextProviderOptions options, string type, string[] supportedFileExtensions, string customJsonSchemaContent = default, Microsoft.VisualStudio.Workspace.ProviderPriority priority = Microsoft.VisualStudio.Workspace.ProviderPriority.Normal);
public ExportCustomFileContextProviderAttribute (Microsoft.VisualStudio.Workspace.CustomContexts.CustomFileContextProviderOptions options, string type, string[] supportedFileExtensions, string? customJsonSchemaContent = default, Microsoft.VisualStudio.Workspace.ProviderPriority priority = Microsoft.VisualStudio.Workspace.ProviderPriority.Normal);
new Microsoft.VisualStudio.Workspace.CustomContexts.ExportCustomFileContextProviderAttribute : Microsoft.VisualStudio.Workspace.CustomContexts.CustomFileContextProviderOptions * string * string[] * string * Microsoft.VisualStudio.Workspace.ProviderPriority -> Microsoft.VisualStudio.Workspace.CustomContexts.ExportCustomFileContextProviderAttribute
Public Sub New (options As CustomFileContextProviderOptions, type As String, supportedFileExtensions As String(), Optional customJsonSchemaContent As String = Nothing, Optional priority As ProviderPriority = Microsoft.VisualStudio.Workspace.ProviderPriority.Normal)

Parameters

options
CustomFileContextProviderOptions

Provider options

type
String

The unique type for this IProviderMetadataBase

supportedFileExtensions
String[]

The supported file extension

customJsonSchemaContent
String

Custom Json schema content

priority
ProviderPriority

File scanner priority

Applies to