共用方式為


IBackupRestoreTreeFormatter.PostChildren method

將格式設定會標示的子節點清單結尾的字串。

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Function PostChildren ( _
    obj As SPBackupRestoreObject, _
    depth As Integer _
) As String
'用途
Dim instance As IBackupRestoreTreeFormatter
Dim obj As SPBackupRestoreObject
Dim depth As Integer
Dim returnValue As String

returnValue = instance.PostChildren(obj, _
    depth)
string PostChildren(
    SPBackupRestoreObject obj,
    int depth
)

參數

  • depth
    Type: System.Int32

    在樹狀目錄中的目前節點深度。

傳回值

Type: System.String
String 代表的對等節點都obj的每個立即子項目清單的結尾。

備註

一般而言,實作此方法會傳回空字串。在大多數情況下, PostObject方法會傳回新行字元。由於每個子項目是物件,是通常不需要在傳回PostChildren與另一個新行字元。

如果您實作不會傳回非空白String,請考慮使用depth做的縮排String量。

Examples

下列程式碼會顯示PostChildren一般實作。

public String PostChildren(SPBackupRestoreObject obj, int depth)
{
    return String.Empty;
}
Public Function PostChildren(ByVal obj As SPBackupRestoreObject, ByVal depth As Integer) As String
    Return String.Empty
End Function

請參閱

參照

IBackupRestoreTreeFormatter interface

IBackupRestoreTreeFormatter members

Microsoft.SharePoint.Administration.Backup namespace