Share via


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)

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

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

SPProviderHierarchyElement members

Microsoft.SharePoint.WebControls namespace