Skip to main content

XPMemberInfo.IsReadOnly Property

Gets whether the member is read-only.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v23.2.dll

NuGet Package: DevExpress.Xpo

Declaration

public bool IsReadOnly { get; }

Property Value

Type Description
Boolean

true if the member is read-only; otherwise, false.

Remarks

The property is marked as read-only if it does not have a set accessor. The field is read-only if it is declared as an init-only field or a constant. Refer to the Microsoft .NET Framework Documentation for details.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsReadOnly property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also