This documentation is archived and is not being maintained.

SPFieldMultiChoice Class

Windows SharePoint Services 3

Represents a choice field that allows multiple values.

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

[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPFieldMultiChoice : SPField

The field value for the SPFieldMultiChoice class is contained in the SPFieldMultiChoiceValue class. For information about creating custom field value classes, see Custom Field Value Classes.

If you set properties of the SPFieldMultiChoice class you must call the Update method for the changes to take effect in the database.

The SPFieldMultiChoice class corresponds to the MultiChoice data type that is specified through the Type attribute of the Field element.

Notes to Inheritors

In Windows SharePoint Services 3.0, columns that are based on custom field types do not appear in Datasheet view and are not included when you export a list to an Microsoft Office Excel 2007 worksheet.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: