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
child
Type: Microsoft.SharePoint.WebControls.SPProviderHierarchyNodeThe hierarchy node object.
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