IXRValueCollection::GetIsReadOnly (Compact 7)
3/12/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 Silverlight 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 Silverlight for Windows Embedded, see Silverlight 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 Silverlight for Windows Embedded.
.NET Framework Equivalent
System.Collections.Generic.ICollection<T>.IsReadOnly
Requirements
Header |
XamlRuntime.h |
sysgen |
SYSGEN_XAML_RUNTIME |