Share via


IXRResourceDictionaryCollection::GetItem (Compact 7)

3/12/2014

This method retrieves the item at the specified index in the IXRResourceDictionaryCollection collection.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetItem(
  __in int ItemIndex,
  __out IXRDependencyObject** ppObject
) = 0;

Parameters

  • ItemIndex
    [in] Integer value that specifies the index of the location of the item to retrieve.
  • ppObject
    [out] Pointer to a pointer to an IXRDependencyObject object that represents the item located in the collection at the index specified in ItemIndex.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To use a specific interface pointer type, use the helper template version of this method provided by Silverlight 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

IXRResourceDictionaryCollection