Share via


IWorkspaceItemFilterService.CreateFileMatcher Method

Definition

Create file matcher from list or glob rules.

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

Parameters

globRules
IReadOnlyCollection<String>

list of rules

root
String

implied root for the rules, if null that will be workspace root

Returns

the implementing object

Applies to