Matcher.AddInclude(String) 方法
定义
添加匹配程序应用来发现文件的文件名模式。Add a file name pattern that the matcher should use to discover files. 调用 Execute(DirectoryInfoBase) 时,相对于给定根目录的模式。Patterns are relative to the root directory given when Execute(DirectoryInfoBase) is called.
使用正斜杠“/”表示目录分隔符。Use the forward slash '/' to represent directory separator. 使用“\*”表示文件和目录名称中的通配符。Use '\*' to represent wildcards in file and directory names. 使用“\*\*”表示任意目录深度。Use '\*\*' to represent arbitrary directory depth. 使用“..”Use '..' 表示父目录。to represent a parent directory.
public:
virtual Microsoft::Extensions::FileSystemGlobbing::Matcher ^ AddInclude(System::String ^ pattern);
public virtual Microsoft.Extensions.FileSystemGlobbing.Matcher AddInclude (string pattern);
abstract member AddInclude : string -> Microsoft.Extensions.FileSystemGlobbing.Matcher
override this.AddInclude : string -> Microsoft.Extensions.FileSystemGlobbing.Matcher
Public Overridable Function AddInclude (pattern As String) As Matcher
参数
- pattern
- String
Glob 模式The globbing pattern
返回
匹配程序The matcher