SPFieldLink.ReadOnly property

Gets and sets a value that indicates whether the SPFieldLink object can be modified.

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

Syntax

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

value = instance.ReadOnly

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

Property value

Type: System.Boolean
true if the field reference is read-only; otherwise, false. The default is false.

Remarks

When the value of this property is true, no other property of the SPFieldLink object can be updated, either directly or indirectly. (The exception to this is that you can always modify the value of the ReadOnly property itself.) For example, setting the value of the ReadOnly property to true prevents direct access by the XML document parser when it attempts to demote a value from a column in the document library to a property in the document. This setting also prevents indirect access, such as when changes in a parent content type are propagated to child content types.

See also

Reference

SPFieldLink class

SPFieldLink members

Microsoft.SharePoint namespace

Other resources

Fields and Field References

XML Document Property Promotion and Demotion

Updating Child Content Types