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

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