Share via


IXRList::SetItem (Compact 2013)

3/28/2014

This method inserts an item at the specified index in the IXRList collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetItem(
    __in int nIndex, 
    __in XRValue * pValue
) = 0;

Parameters

  • nIndex
    [in] Integer value that specifies the index of the location of the item to set.
  • pValue
    [out] Pointer to an XRValue object that represents the item to set.

Return Value

Returns S_OK if successful; otherwise, returns an HRESULT error code. For common error codes for XAML for Windows Embedded, see XAML for Windows Embedded Error Messages.

Remarks

To use a specific interface pointer type, use the helper template version of this method provided by XAML for Windows Embedded. When you supply a derived type, this version automatically supplies a type-safe method that implicitly converts the returned type from a generic interface, so you do not have to explicitly call QueryInterface to convert the generic interface into the required object type.

.NET Framework Equivalent

None.

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRList
XRCollectionChangedCustomEventArgs