Share via


IXRValueCollection::GetIsReadOnly (Compact 2013)

3/28/2014

This method retrieves a value that determines whether this collection can be modified.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsReadOnly(
    __out bool * pIsReadOnly
) = 0;

Parameters

  • pIsReadOnly
    [out] Pointer to a Boolean value that determines whether the user can change the values in this collection. This always returns false for XAML for Windows Embedded; the values in the collection can be changed.

Return Value

Returns S_OK if successful; otherwise, returns an HRESULT error code. For common error codes for XAML for Windows Embedded, see XAML for Windows Embedded Error Messages.

Remarks

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. This is never true for XAML for Windows Embedded.

.NET Framework Equivalent

System.Collections.Generic.ICollection<T>.IsReadOnly

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRValueCollection
XRCollectionChangedCustomEventArgs