Share via


IXRSetterBaseCollection::GetIsSealed (Compact 2013)

3/28/2014

This method retrieves a value that indicates whether this collection is in a read-only state.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsSealed(
    __out bool* pIsSealed
) = 0;

Parameters

  • pIsSealed
    [out] Pointer to a Boolean value that indicates whether this collection is in a read-only state. This value is true if this collection is in a read-only state and cannot be changed; otherwise, this value is false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If pIsSealed is set to true and you try to modify an IXRSetter in this collection or add an IXRSetter to this collection, an exception is thrown.

When an object loaded at run time by XAML for Windows Embedded references an IXRStyle object in the visual tree, that IXRStyle is sealed. When this occurs, the object that has the IXRStyle raises its Loaded event. To handle this event, you can use IXRFrameworkElement::AddLoadedEventHandler.

.NET Framework Equivalent

System.Windows.SetterBaseCollection.IsSealed

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRSetterBaseCollection