SPProviderHierarchyElement.HasChild Method
Determines whether the object contains a child object that is specified by the identifier.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function HasChild ( _
identifier As String _
) As Boolean
'Usage
Dim instance As SPProviderHierarchyElement
Dim identifier As String
Dim returnValue As Boolean
returnValue = instance.HasChild(identifier)
public bool HasChild(
string identifier
)
Parameters
identifier
Type: System.StringThe key of the SPProviderHierarchyNode element within the Dictionary<TKey, TValue>.
Return Value
Type: System.Boolean
true if the dictionary contains a child object with the specified key; otherwise false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Identifier is a null reference (Nothing in Visual Basic). |
Remarks
The identifier associated with the child objects in the dictionary must not be a null reference (Nothing in Visual Basic).
See Also
Reference
SPProviderHierarchyElement Class