SPMobileBaseChoiceField.DisplaySelectionNumberLimit 属性
在列表视图中或项目显示页上显示的选项字段中获取的最大选定选项数。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property DisplaySelectionNumberLimit As Integer
Get
用法
Dim instance As SPMobileBaseChoiceField
Dim value As Integer
value = instance.DisplaySelectionNumberLimit
public int DisplaySelectionNumberLimit { get; }
属性值
类型:System.Int32
Int32 ,代表选定选项的最大数量设置在移动 web.config 文件中,为项目显示页面上的用户提供了该字段。
备注
若要使用此属性,必须将add元素插入移动 web.config 文件 (请参阅示例),然后重写DisplaySelectionNumberLimitKey为您分配给key元素的属性的值返回。
示例
下面是可以具有的选项字段类派生自SPMobileBaseChoiceField数设置限制add元素的示例。
<add key="mobile_My_Custom_choicefielddisplayselectionnumberlimit"
value="10" />