Freigeben über


TempDataDictionary.ICollection<KeyValuePair<String, Object>>.IsReadOnly Property

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

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

Syntax

'Declaration
Private ReadOnly Property IsReadOnly As Boolean
    Implements ICollection(Of KeyValuePair(Of String, Object)).IsReadOnly
    Get
bool ICollection<KeyValuePair<string, Object>>.IsReadOnly { get; }
private:
virtual property bool IsReadOnly {
    bool get () sealed = ICollection<KeyValuePair<String^, Object^>>::IsReadOnly::get;
}

Property Value

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

Implements

ICollection<T>.IsReadOnly

Remarks

A dictionary that is read-only does not allow the addition, removal, or modification of elements after the collection is created.

See Also

Reference

TempDataDictionary Class

System.Web.Mvc Namespace