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)

適用於