ModelMetadata.IsReadOnly Property
Gets or sets a value that indicates whether the model is read-only.
Namespace: System.Web.Http.Metadata
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Property IsReadOnly As Boolean
Get
Set
'Usage
Dim instance As ModelMetadata
Dim value As Boolean
value = instance.IsReadOnly
instance.IsReadOnly = value
public virtual bool IsReadOnly { get; set; }
public:
virtual property bool IsReadOnly {
bool get ();
void set (bool value);
}
abstract IsReadOnly : bool with get, set
override IsReadOnly : bool with get, set
function get IsReadOnly () : boolean
function set IsReadOnly (value : boolean)
Property Value
Type: System.Boolean
true if the model is read-only; otherwise, false.