IVisualTreeService::ClearProperty method (xamlom.h)
Clears the specified property on a XAML element.
Syntax
HRESULT ClearProperty(
[in] InstanceHandle instanceHandle,
[in] unsigned int propertyIndex
);
Parameters
[in] instanceHandle
A handle to the element to set the property on.
[in] propertyIndex
The index (in the XAML runtime cache) of the property to clear.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | xamlom.h |