BaseChoiceField 类

提供呈现其值的字段 (不在列表视图页上,但在窗体页面上) 的控件的核心功能通常选定的一组选项,如下拉列表、 一组选项按钮或复选框的一组用户。

继承层次结构

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

命名空间:  Microsoft.SharePoint.WebControls
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public MustInherit Class BaseChoiceField _
    Inherits BaseFieldControl
用法
Dim instance As BaseChoiceField
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class BaseChoiceField : BaseFieldControl

备注

用于此类作为基类派生控件来呈现特定类型的选项字段在窗体上 (但不是在列表视图上)。

BaseChoiceField类型的对象主要用作SPField.FieldRenderingControl属性的值。

从BaseChoiceField类型派生的控件还可以有一个文本框,用户可以在其中键入一个自定义值。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

BaseChoiceField 成员

Microsoft.SharePoint.WebControls 命名空间