Share via


ExportFileContextActionProviderAttribute 类

定义

将 导出 IFileContextActionProvider 到包含元数据的 MEF 目录,如 所述 IFileContextActionProviderMetadata

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

构造函数

ExportFileContextActionProviderAttribute(FileContextActionProviderOptions, String, ProviderPriority, String[])

初始化 ExportFileContextActionProviderAttribute 类的新实例。

ExportFileContextActionProviderAttribute(String, ProviderPriority, String[])

初始化 ExportFileContextActionProviderAttribute 类的新实例。

ExportFileContextActionProviderAttribute(String, String[])

初始化 ExportFileContextActionProviderAttribute 类的新实例。

属性

OptionFlags

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

(继承自 ExportProviderAttributeBase)
OptionFlagsInternal

返回内部选项标志

Options

FileContextActionProvider 选项

Priority

提供程序优先级

(继承自 ExportProviderAttributeBase)
SupportedContextTypes

获取标识此语言服务可从中 ContextType 初始化的值的 GUID 集合。

Type

此提供程序的唯一类型

(继承自 ExportProviderAttributeBase)
Version

版本跟踪

(继承自 ExportProviderAttributeBase)

适用于