Share via


ExportFileContextProviderAttribute 类

定义

IFileContextProvider将 导出到包含元数据的 MEF 目录,如 中所述IFileContextProviderMetadata

public ref class ExportFileContextProviderAttribute : Microsoft::VisualStudio::Workspace::ExportProviderAttributeBase, Microsoft::VisualStudio::Workspace::IFileContextProviderMetadata
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public class ExportFileContextProviderAttribute : Microsoft.VisualStudio.Workspace.ExportProviderAttributeBase, Microsoft.VisualStudio.Workspace.IFileContextProviderMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Field | System.AttributeTargets.Method | System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type ExportFileContextProviderAttribute = class
    inherit ExportProviderAttributeBase
    interface IFileContextProviderMetadata
    interface IProviderMetadataBase
Public Class ExportFileContextProviderAttribute
Inherits ExportProviderAttributeBase
Implements IFileContextProviderMetadata
继承
ExportFileContextProviderAttribute
属性
实现

构造函数

ExportFileContextProviderAttribute(FileContextProviderOptions, String, ProviderPriority, Type[], String[])

初始化 ExportFileContextProviderAttribute 类的新实例。

ExportFileContextProviderAttribute(String, ProviderPriority, String[])

初始化 ExportFileContextProviderAttribute 类的新实例。

ExportFileContextProviderAttribute(String, ProviderPriority, Type[], String[])

初始化 ExportFileContextProviderAttribute 类的新实例。

ExportFileContextProviderAttribute(String, String[])

初始化 ExportFileContextProviderAttribute 类的新实例。

属性

OptionFlags

为此元数据定义为 flags 属性的选项

(继承自 ExportProviderAttributeBase)
OptionFlagsInternal

返回内部选项标志

Options

FileContextProvider 选项

Priority

提供程序优先级

(继承自 ExportProviderAttributeBase)
SupportedContextTypes

获取此提供程序可能为其 ContextType 生成的值的集合。

SupportedGetContextsTypes

传递自定义工作区上下文时支持的类型集合

Type

此提供程序的唯一类型

(继承自 ExportProviderAttributeBase)
Version

版本跟踪

(继承自 ExportProviderAttributeBase)

适用于