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