Share via


ExportFileScannerAttribute 类

定义

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

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

构造函数

ExportFileScannerAttribute(FileScannerOptions, String, String, String, String[], Type[], ProviderPriority)

初始化 ExportFileScannerAttribute 类的新实例。

ExportFileScannerAttribute(FileScannerOptions, String, String, String[], Type[], ProviderPriority)

初始化 ExportFileScannerAttribute 类的新实例。

ExportFileScannerAttribute(String, String, String, Type)

初始化 ExportFileScannerAttribute 类的新实例。

ExportFileScannerAttribute(String, String, String[], Type[])

初始化 ExportFileScannerAttribute 类的新实例。

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

初始化 ExportFileScannerAttribute 类的新实例。

属性

FilesFilters

可选。 获取一组规则 (glob 模式) 文件。 这将构成“匿名”内容类型,即仅适用于给定提供程序的文件集。 如果存在) ,则与此规则 (匹配的文件将传递给组件,而不考虑其计算的内容类型。

(继承自 ExportFileExtensionsAttributeBase)
Language

获取描述此扫描程序适合的文件类型的简单名称。

OptionFlags

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

(继承自 ExportProviderAttributeBase)
OptionFlagsInternal

返回内部选项标志

Options

FileScanner 选项

Priority

提供程序优先级

(继承自 ExportProviderAttributeBase)
SupportedContentTypes

可选。 此组件要处理的内容类型列表。

(继承自 ExportFileExtensionsAttributeBase)
SupportedTypes

获取此元数据支持的一组类型

Type

此提供程序的唯一类型

(继承自 ExportProviderAttributeBase)
Version

版本跟踪

(继承自 ExportProviderAttributeBase)

适用于