Share via


IXRValueCollection::Clear (Compact 7)

3/12/2014

This method removes all items from the IXRValueCollection collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE Clear() = 0;

Parameters

None.

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

After you call this method, the value retrieved by IXRValueCollection::GetCount is 0 (zero), and references to other objects from the items that were in this collection are also released.

.NET Framework Equivalent

System.Collections.Generic.ICollection(T).Clear

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRValueCollection
IXRList