EnumerationOptions EnumerationOptions EnumerationOptions EnumerationOptions Class

定義

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

建構函式

EnumerationOptions() EnumerationOptions() EnumerationOptions() EnumerationOptions()

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

屬性

AttributesToSkip AttributesToSkip AttributesToSkip AttributesToSkip

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

BufferSize BufferSize BufferSize BufferSize

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

IgnoreInaccessible IgnoreInaccessible IgnoreInaccessible 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 MatchCasing MatchCasing MatchCasing

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

MatchType MatchType MatchType MatchType

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

RecurseSubdirectories RecurseSubdirectories RecurseSubdirectories RecurseSubdirectories

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

ReturnSpecialDirectories ReturnSpecialDirectories ReturnSpecialDirectories ReturnSpecialDirectories

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

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

適用於