Share via


MediaCollection.SetItem Method

Specifies the item in the collection that is active.

Syntax

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

Parameters

index

System.Int32.  The index location of the media item. 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 a media item.

Return Value

This method does not return a value.

Remarks

None.

Requirements

Reference: Microsoft.MediaCenter

Namespace: Microsoft.MediaCenter

Assembly: Microsoft.MediaCenter.dll

Platform: Windows 7

See Also