ReadOnlyAttribute Class
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Annotates that a property is read-only outside commerce runtime.
Namespace: Microsoft.Dynamics.Commerce.Runtime.DataModel
Assembly: Microsoft.Dynamics.Commerce.Runtime.Framework (in Microsoft.Dynamics.Commerce.Runtime.Framework.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False)> _
Public NotInheritable Class ReadOnlyAttribute _
Inherits Attribute
'Usage
Dim instance As ReadOnlyAttribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public sealed class ReadOnlyAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = false)]
public ref class ReadOnlyAttribute sealed : public Attribute
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.Dynamics.Commerce.Runtime.DataModel.ReadOnlyAttribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.