GroupedDropDownList.AddChoice Method

Adds an item to the drop-down list box with ID, name, and description, in the specified group.

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

Syntax

'Declaration
Public Sub AddChoice ( _
    id As String, _
    name As String, _
    description As String, _
    group As String _
)
'Usage
Dim instance As GroupedDropDownList
Dim id As String
Dim name As String
Dim description As String
Dim group As String

instance.AddChoice(id, name, description, _
    group)
public void AddChoice(
    string id,
    string name,
    string description,
    string group
)

Parameters

  • description
    Type: System.String

    A string that represents the description.

See Also

Reference

GroupedDropDownList Class

GroupedDropDownList Members

Microsoft.SharePoint.WebControls Namespace