Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

SPFieldChoice class

Represents a choice field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableTypeAttribute(Name = "FieldChoice", ServerTypeId = "a0b73943-fabc-47d3-b2c8-ec41b1216b1d")]
[SubsetCallableTypeAttribute]
public class SPFieldChoice : SPFieldMultiChoice

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

An SPFieldChoice object can be rendered through the BaseChoiceField server control.

The SPFieldChoice class corresponds to the Choice 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.