IsReadOnly Property
Collapse the table of content
Expand the table of content

PresentationFrameworkCollection<T>.IsReadOnly Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value indicating whether the PresentationFrameworkCollection<T> is read-only.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public bool IsReadOnly { get; }

Property Value

Type: System.Boolean
true if the PresentationFrameworkCollection<T> is read-only; otherwise, false.

Implements

ICollection<T>.IsReadOnly
IList.IsReadOnly

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

Note that such a read-only collection is inherently incompatible with XAML. IsReadOnly reports a different concept than whether the property that holds the collection is read-only.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft