共用方式為


DataAttribute.ReadOnly Property

Gets or sets a value that indicates whether the column on the list is read-only.

Namespace:  Microsoft.SharePoint.Linq
Assembly:  Microsoft.SharePoint.Linq (in Microsoft.SharePoint.Linq.dll)

Syntax

'Declaration
Public Property ReadOnly As Boolean
    Get
    Set
'Usage
Dim instance As DataAttribute
Dim value As Boolean

value = instance.ReadOnly

instance.ReadOnly = value
public bool ReadOnly { get; set; }

Property Value

Type: System.Boolean
true, if the column is read-only; otherwise, false.

See Also

Reference

DataAttribute Class

DataAttribute Members

Microsoft.SharePoint.Linq Namespace