Partilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableTypeAttribute> _
<ClientCallableTypeAttribute(Name := "FieldMultiChoice", ServerTypeId := "{284C160F-3783-4344-A471-80E032719F26}")> _
Public Class SPFieldMultiChoice _
    Inherits SPField
'Usage
Dim instance As SPFieldMultiChoice
[SubsetCallableTypeAttribute]
[ClientCallableTypeAttribute(Name = "FieldMultiChoice", ServerTypeId = "{284C160F-3783-4344-A471-80E032719F26}")]
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 How to: Create a Custom Field Value Class.

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 SharePoint Foundation, columns based on custom field types are read-only in Datasheet view.

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.

See Also

Reference

SPFieldMultiChoice Members

Microsoft.SharePoint Namespace