Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the EditableAttribute class.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
'Declaration Public Sub New ( _ allowEdit As Boolean _ )
public EditableAttribute( bool allowEdit )
The value that indicates whether users should be able to change the existing value of the property and set a value when inserting a new record.
The value you provide in the allowEdit parameter is applied to both the AllowEdit and AllowInitialValue properties because typically you will want both values to be the same. You can modify this behavior by explicitly setting the value of AllowInitialValue property.
The AllowEdit property indicates whether users should be allowed to change the existing value of a property. The AllowInitialValue property indicates whether users should be allowed to set a value for the property when inserting a new record. Setting either property to false does not functionally prevent the value from being edited or set to an initial value. You use this attribute to communicate to the client application how the property should be handled.
Supported in: 5, 4, 3
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.