BaseChoiceField Class
Provides core functionality for controls that render fields (on form pages, but not on list view pages) whose value is usually selected by users from a set of options, such as a drop-down list, a set of option buttons, or a set of check boxes.
Inheritance Hierarchy
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.TemplateBasedControl
Microsoft.SharePoint.WebControls.FormComponent
Microsoft.SharePoint.WebControls.FieldMetadata
Microsoft.SharePoint.WebControls.BaseFieldControl
Microsoft.SharePoint.WebControls.BaseChoiceField
Microsoft.SharePoint.WebControls.CheckBoxChoiceField
Microsoft.SharePoint.WebControls.DropDownChoiceField
Microsoft.SharePoint.WebControls.RadioButtonChoiceField
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public MustInherit Class BaseChoiceField _
Inherits BaseFieldControl
'Usage
Dim instance As BaseChoiceField
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class BaseChoiceField : BaseFieldControl
Remarks
Use this class as a base class for deriving controls to render specific types of choice fields on forms (but not on list views).
Objects of the BaseChoiceField type are primarily used as the value of the SPField.FieldRenderingControl property.
A control derived from the BaseChoiceField type can also have a text box in which the user can type a custom value.
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.