FieldText.MaxLength 属性
Gets or sets a value that specifies the maximum number of characters allowed in the value of the field.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Property MaxLength As Integer
Get
Set
用法
Dim instance As FieldText
Dim value As Integer
value = instance.MaxLength
instance.MaxLength = value
public int MaxLength { get; set; }
属性值
类型:System.Int32
Returns a Int32 instance representing the maximum number of characters allowed in the value of the field.
异常
异常 | 条件 |
---|---|
[Microsoft.SharePoint.SPException] | The server does not allow properties of the field to be changed. Error code: -2146232832. |
备注
Its value must be equal to or greater than 1. Its value must be equal to or less than 255.