Partager via


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

1/6/2010

This method adds an item to the end of this collection and retrieves the index of where it was added.

Syntax

virtual HRESULT STDMETHODCALLTYPE   Add(
    In_T pvalue, 
    int *pIndex
) = 0;

Parameters

  • pvalue
    [in] A value that represents an item to add to this collection.

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

  • pIndex
    [out] On return, pointer to an integer value that indicates the zero-based index that describes the location of the added item in this collection. This parameter is optional.

Return Value

Returns an HRESULT that indicates success or failure.

.NET Framework Equivalent

System.Windows.PresentationFrameworkCollection(T).Add

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>