Share via


MediaCollection.InsertItem Method

Adds an item at a specific index location in the current media collection.

Syntax

  protected virtual void InsertItem(
  int  index,
  MediaCollectionItem  item
);

Parameters

index

System.Int32.  Specifies the index location in the location where the media item should be added. Specify index=-1 to append the item to the end of the collection, and index=n inserts the item after location n.

item

Microsoft.MediaCenter.MediaCollectionItem.  An object that contains the media item to add.

Return Value

This method does not return a value.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also