Share via


SPProviderHierarchyElement.AddChild method

Adds a child SPProviderHierarchyNode object to the current claims provider hierarchy node for a control.

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

Syntax

'Declaration
Public Sub AddChild ( _
    child As SPProviderHierarchyNode _
)
'Usage
Dim instance As SPProviderHierarchyElement
Dim child As SPProviderHierarchyNode

instance.AddChild(child)
public void AddChild(
    SPProviderHierarchyNode child
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

child is a null reference (Nothing in Visual Basic).

Remarks

The SPProviderHierarchyNode object to add must not be a null reference (Nothing in Visual Basic).

See also

Reference

SPProviderHierarchyElement class

SPProviderHierarchyElement members

Microsoft.SharePoint.WebControls namespace