Share via


SPProviderHierarchyElement.AddEntity method

Adds a PickerEntity object to the internal collection of PickerEntity objects.

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

Syntax

'Declaration
Public Sub AddEntity ( _
    entity As PickerEntity _
)
'Usage
Dim instance As SPProviderHierarchyElement
Dim entity As PickerEntity

instance.AddEntity(entity)
public void AddEntity(
    PickerEntity entity
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

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

Remarks

An entity is basically a category of data, for example "Customer" or "Employee".

See also

Reference

SPProviderHierarchyElement class

SPProviderHierarchyElement members

Microsoft.SharePoint.WebControls namespace