SPPersistedObject.GetChild<T> method (String)

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

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


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
    The object to locate.


  • name
    Type: System.String

    A string that contains the name of the child object.

Return value

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

See also


SPPersistedObject class

SPPersistedObject members

GetChild overload

Microsoft.SharePoint.Administration namespace