IWorkspaceItemFilterService.CreateFileMatcher 方法

定义

从 list 或 glob 规则创建文件匹配程序。

public Microsoft.VisualStudio.Workspace.ItemFilters.IWorkspaceFileMatcher CreateFileMatcher (System.Collections.Generic.IReadOnlyCollection<string> globRules, string root = default);
abstract member CreateFileMatcher : System.Collections.Generic.IReadOnlyCollection<string> * string -> Microsoft.VisualStudio.Workspace.ItemFilters.IWorkspaceFileMatcher
Public Function CreateFileMatcher (globRules As IReadOnlyCollection(Of String), Optional root As String = Nothing) As IWorkspaceFileMatcher

参数

globRules
IReadOnlyCollection<String>

规则列表

root
String

规则的隐含根(如果将作为工作区根的 null)

返回

IWorkspaceFileMatcher

实现对象

适用于