SPFieldMultiChoice.AddChoice method

Adds a choice to the Choices collection.

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

Syntax

'Declaration
Public Sub AddChoice ( _
    choice As String _
)
'Usage
Dim instance As SPFieldMultiChoice
Dim choice As String

instance.AddChoice(choice)
public void AddChoice(
    string choice
)

Parameters

Remarks

This method is intended for sandboxed solutions where StringCollection is not sandboxed. Thus changes to the Choices collection are not propagated back to the owning field.

See also

Reference

SPFieldMultiChoice class

SPFieldMultiChoice members

Microsoft.SharePoint namespace