Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the child element from the specified index.
Syntax
HRESULT RemoveChild(
[in] InstanceHandle parent,
[in] unsigned int index
);
Parameters
[in] parent
A handle to the collection object.
[in] index
Location in parent collection at which to remove the child element.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. The method will fail if index is outside of the collection range.
Remarks
For any collection method, the caller should query the properties of a known element and should only call this method if the property has MetadataBit::IsValueCollectionset.
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 |