다음을 통해 공유


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)
Available in Sandboxed Solutions: No

Syntax

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

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

Type Parameters

  • T

Parameters

  • 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

Reference

SPPersistedObject Class

SPPersistedObject Members

GetChild Overload

Microsoft.SharePoint.Administration Namespace