Share via


IXRCollection<In_T, Out_T>::Insert (Windows Embedded CE 6.0)

1/6/2010

This method inserts an item into this collection at the location that has the specified index value.

Syntax

virtual HRESULT STDMETHODCALLTYPE   Insert(
    int index, 
    In_T pvalue
) = 0;

Parameters

  • index
    [in] An integer value that indicates the zero-based index value at which pvalue should be inserted.
  • pvalue
    [in] A value that represents the item to insert.

    In inherited classes, the type of this item corresponds to the specific collection type that inherits from this template class.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If index is equal to the value retrieved by IXRCollection<In_T, Out_T>::GetCount, the item is added to the end of this collection.

When an item is inserted in this collection, the subsequent items are moved to the next indexed position in the order of items.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Insert

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRCollection<In_T, Out_T>