共用方式為


SPPersistedObject.GetChild<T> method (String)

會傳回指定名稱為基礎的持續性物件的子物件。

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

Syntax

'宣告
Public Function GetChild(Of T As {New, SPPersistedObject}) ( _
    name As String _
) As T
'用途
Dim instance As SPPersistedObject
Dim name As String
Dim returnValue As T

returnValue = instance.GetChild(name)
public T GetChild<T>(
    string name
)
where T : new(), SPPersistedObject

Type parameters

  • T
    要尋找的物件。

參數

傳回值

Type: T
代表保存物件的子類型。

請參閱

參照

SPPersistedObject class

SPPersistedObject members

GetChild overload

Microsoft.SharePoint.Administration namespace