Share via


GroupedItemPicker.AddItemHtml Method

Marks an item as a choice in the grouped item picker. Takes a string ID, string name, HTML-encoded string description, and string group.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub AddItemHtml ( _
    id As String, _
    name As String, _
    descriptionHtml As String, _
    group As String _
)
'Usage
Dim instance As GroupedItemPicker
Dim id As String
Dim name As String
Dim descriptionHtml As String
Dim group As String

instance.AddItemHtml(id, name, descriptionHtml, _
    group)
public void AddItemHtml(
    string id,
    string name,
    string descriptionHtml,
    string group
)

Parameters

  • id
    Type: System.String

    The ID used in the set of possible items.

  • name
    Type: System.String

    The name that is used in the set of possible items.

  • descriptionHtml
    Type: System.String

    The description used in the set of possible items.

  • group
    Type: System.String

    The group used in the set of possible items.

Exceptions

Exception Condition
ArgumentNullException

The id parameter or name parameter is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

The id parameter or name parameter is empty.

See Also

Reference

GroupedItemPicker Class

GroupedItemPicker Members

Microsoft.SharePoint.WebControls Namespace