FieldText.MaxLength 屬性
取得或設定值,指定欄位值所允許的字元數上限。
命名空間: 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
傳回代表] 欄位的值所允許的字元數上限Int32執行個體。
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | 伺服器不允許變更欄位的內容。錯誤碼 ︰-2146232832。 |
備註
值必須等於或大於 1。值必須等於或小於 255。