SPMobileBaseChoiceField.OptionTextLengthLimit 属性
获取的最大选项字段中的任何给定的选项可以具有的字符数。
命名空间: Microsoft.SharePoint.Mobile.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property OptionTextLengthLimit As Integer
Get
用法
Dim instance As SPMobileBaseChoiceField
Dim value As Integer
value = instance.OptionTextLengthLimit
public int OptionTextLengthLimit { get; }
属性值
类型:System.Int32
最大值,该值代表Int32设置在移动 web.config 文件中,可以具有任何给定的选择的字符数。
备注
若要使用此属性,必须将add元素插入移动 web.config 文件 (请参阅示例),然后重写OptionTextLengthLimitKey返回给元素的key属性的值。
示例
下面是长度从SPMobileBaseChoiceField派生的类中的一个选项的设置的限制add元素的示例。
<add key="mobile_My_Custom_choicefieldoptiontextlengthlimit" value="20" />