EnumerationOptions 類別

定義

提供檔案和目錄列舉選項。Provides file and directory enumeration options.

public ref class EnumerationOptions
public class EnumerationOptions
type EnumerationOptions = class
Public Class EnumerationOptions
繼承
EnumerationOptions

建構函式

EnumerationOptions()

使用建議的預設選項,初始化 EnumerationOptions 類別的新執行個體。Initializes a new instance of the EnumerationOptions class with the recommended default options.

屬性

AttributesToSkip

取得或設定要略過的屬性。Gets or sets the attributes to skip. 預設值是 FileAttributes.Hidden | FileAttributes.SystemThe default is FileAttributes.Hidden | FileAttributes.System.

BufferSize

取得或設定建議的緩衝區大小 (以位元組為單位)。Gets or sets the suggested buffer size, in bytes. 預設值為 0 (無建議)。The default is 0 (no suggestion).

IgnoreInaccessible

取得或設定值,指出是否要在存取遭拒絕時略過檔案或目錄 (例如 UnauthorizedAccessExceptionSecurityException)。Gets or sets a value that indicates whether to skip files or directories when access is denied (for example, UnauthorizedAccessException or SecurityException). 預設為 trueThe default is true.

MatchCasing

取得或設定大小寫比對行為。Gets or sets the case matching behavior.

MatchType

取得或設定比對類型。Gets or sets the match type.

RecurseSubdirectories

取得或設定值,指出是否要在列舉時遞迴至子目錄。Gets or sets a value that indicates whether to recurse into subdirectories while enumerating. 預設為 falseThe default is false.

ReturnSpecialDirectories

取得或設定值,指出是否要傳回特殊目錄項目 "." 和 ".."。Gets or sets a value that indicates whether to return the special directory entries "." and "..".

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於