Field.ReadOnlyField 屬性
取得或設定值,指定欄位的值是否為唯讀。
命名空間: 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 ReadOnlyField As Boolean
Get
Set
'用途
Dim instance As Field
Dim value As Boolean
value = instance.ReadOnlyField
instance.ReadOnlyField = value
public bool ReadOnlyField { get; set; }
屬性值
類型:System.Boolean
傳回Booleantrue ] 欄位的值是唯讀的; 如果否則,傳回false。
例外狀況
例外狀況 | 條件 |
---|---|
[System.NotSupportedException] | 變更值時,而清單是外部清單。錯誤碼:-1。 |