SPFieldMultiChoice Class
Represents a choice field that allows multiple values.
Inheritance Hierarchy
System.Object
Microsoft.SharePoint.SPField
Microsoft.SharePoint.SPFieldMultiChoice
Microsoft.SharePoint.SPFieldChoice
Microsoft.SharePoint.SPFieldRatingScale
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Class SPFieldMultiChoice _
Inherits SPField
Dim instance As SPFieldMultiChoice
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPFieldMultiChoice : SPField
Remarks
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.