EnumerationOptions.MaxRecursionDepth 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當 設定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 設為零,列舉會回傳初始目錄的內容。