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
要尋找的物件。
參數
name
Type: System.String字串,包含子物件的名稱。
傳回值
Type: T
代表保存物件的子類型。