SPFieldMultiChoice.RemoveChoice method
Removes a choice from the Choices collection.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub RemoveChoice ( _
choice As String _
)
'Usage
Dim instance As SPFieldMultiChoice
Dim choice As String
instance.RemoveChoice(choice)
public void RemoveChoice(
string choice
)
Parameters
choice
Type: System.StringThe choice to be removed.
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.