Compartilhar via


Field.ReadOnlyField Property

Gets or sets a value that specifies whether the value of the field is read-only.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property ReadOnlyField As Boolean
    Get
    Set
'Usage
Dim instance As Field
Dim value As Boolean

value = instance.ReadOnlyField

instance.ReadOnlyField = value
[RemoteAttribute]
public bool ReadOnlyField { get; set; }

Property Value

Type: System.Boolean
Returns Booleantrue if the value of the field is read-only otherwise returns false. The default value is

Exceptions

Exception Condition
[System.NotSupportedException]

Value is changed, and the list is an external list. Error code: -1.

See Also

Reference

Field Class

Field Members

Microsoft.SharePoint.Client Namespace