SPPersistedObject.GetChild<T> Method

Returns the child of the persisted object based on the specified type.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.GenericMethod)> _
Public Function GetChild(Of T As {New, SPPersistedObject}) As T
'Usage
Dim instance As SPPersistedObject
Dim returnValue As T

returnValue = instance.GetChild()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.GenericMethod)]
public T GetChild<T>()
where T : new(), SPPersistedObject

Type Parameters

  • T

Return Value

Type: T
A type that represents the child of the persisted object.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

GetChild Overload

Microsoft.SharePoint.Administration Namespace