FileSystemEnumerator<TResult>.ShouldIncludeEntry(FileSystemEntry) 方法

定義

在衍生類別中覆寫時,判斷指定的檔案系統項目是否應包含在結果中。When overridden in a derived class, determines whether the specified file system entry should be included in the results.

protected:
 virtual bool ShouldIncludeEntry(System::IO::Enumeration::FileSystemEntry % entry);
protected virtual bool ShouldIncludeEntry (ref System.IO.Enumeration.FileSystemEntry entry);
abstract member ShouldIncludeEntry : FileSystemEntry -> bool
override this.ShouldIncludeEntry : FileSystemEntry -> bool
Protected Overridable Function ShouldIncludeEntry (ByRef entry As FileSystemEntry) As Boolean

參數

entry
FileSystemEntry

檔案系統項目參考。A file system entry reference.

傳回

如果指定的檔案系統項目應包含在結果中,則為 true;否則為 falsetrue if the specified file system entry should be included in the results; otherwise, false.

適用於