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.StringThe ID used in the set of possible items.
name
Type: System.StringThe name that is used in the set of possible items.
descriptionHtml
Type: System.StringThe description used in the set of possible items.
group
Type: System.StringThe 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. |