語言

EnumerationOptions.MaxRecursionDepth 屬性

定義

當 設定true為 時,會取得或設定一個值,表示遞迴RecurseSubdirectories目錄的最大深度。

public:
 property int MaxRecursionDepth { int get(); void set(int value); };
public int MaxRecursionDepth { get; set; }
member this.MaxRecursionDepth : int with get, set
Public Property MaxRecursionDepth As Integer

屬性值

一個數字代表列舉時遞迴目錄的最大深度。 預設為 Int32.MaxValue。

備註

若 MaxRecursionDepth 設為負數,則使用預設值 MaxValue 。 若 MaxRecursionDepth 設為零,列舉會回傳初始目錄的內容。

適用於