Compartilhar via


ViewDataDictionary.IsReadOnly Property

Gets a value that indicates whether the collection is read-only.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public ReadOnly Property IsReadOnly As Boolean
    Get
public bool IsReadOnly { get; }
public:
virtual property bool IsReadOnly {
    bool get () sealed;
}

Property Value

Type: System.Boolean
true if the collection is read-only; otherwise, false.

Implements

ICollection<T>.IsReadOnly

See Also

Reference

ViewDataDictionary Class

System.Web.Mvc Namespace