Share via


IMLCore::InsertItem (Compact 7)

3/12/2014

This method inserts an item into the Media Library by using the property set object.

Syntax

HRESULT InsertItem(
  ULONG entityID,
  IMLPropertySet *pPropertySet
);

Parameters

  • entityID
    [in] Type of media item that is to be inserted.
  • pPropertySet
    [in] Pointer to the IMLPropertySet object that contains the metadata for the inserted media item.

Return Values

Returns the HRESULT values shown in the following table.

Return code Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

A pointer parameter is invalid.

E_FAIL

The method was not successful.

E_OUTOFMEMORY

An out of memory error occurred.

Remarks

The IMLPropertySet contains the property set for the inserted item. Only valid properties for the entity type should be contained in the property set. For example, inserting video and music properties into the same item is not valid.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLCore