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()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于