Share via


IXRStyle::Seal (Compact 2013)

3/28/2014

This method locks this style so that you cannot change its target type nor its value-setting objects in its IXRSetterBaseCollection object.

Syntax

virtual HRESULT STDMETHODCALLTYPE Seal() = 0;

Parameters

None.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If you try to change the target type by calling IXRStyle::SetTargetType or change a value-setting object in the collection retrieved by IXRStyle::GetSetters, an exception is thrown.

.NET Framework Equivalent

System.Windows.Style.Seal

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRStyle
IXRStyle::GetIsSealed