Matcher.Execute(DirectoryInfoBase) 方法

定义

在指定的目录中搜索与添加到此 实例 Matcher的模式匹配的所有文件。

public:
 virtual Microsoft::Extensions::FileSystemGlobbing::PatternMatchingResult ^ Execute(Microsoft::Extensions::FileSystemGlobbing::Abstractions::DirectoryInfoBase ^ directoryInfo);
public virtual Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult Execute (Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase directoryInfo);
abstract member Execute : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase -> Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult
override this.Execute : Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoBase -> Microsoft.Extensions.FileSystemGlobbing.PatternMatchingResult
Public Overridable Function Execute (directoryInfo As DirectoryInfoBase) As PatternMatchingResult

参数

directoryInfo
DirectoryInfoBase

搜索的根目录。

返回

始终返回 的 PatternMatchingResult实例,即使没有匹配的文件也是如此。

适用于