Share via


Windows Media Player 11 SDK AxWindowsMediaPlayer.MediaCollectionAttributeStringAdded Event (VB and C#) 

Windows Media Player SDK banner art

Previous Next

AxWindowsMediaPlayer.MediaCollectionAttributeStringAdded Event (VB and C#)

The MediaCollectionAttributeStringAdded event occurs when an attribute value is added to the library.

[Visual Basic]
Private Sub player_MediaCollectionAttributeStringAdded(
  sender As Object,
  e As _WMPOCXEvents_MediaCollectionAttributeStringAddedEvent
) Handles player.MediaCollectionAttributeStringAdded

[C#]
private void player_MediaCollectionAttributeStringAdded(
  object sender,
  _WMPOCXEvents_MediaCollectionAttributeStringAddedEvent e
)

Event Data

The handler associated with this event is of type AxWMPLib._WMPOCXEvents_MediaCollectionAttributeStringAddedEventHandler. This handler receives an argument of type AxWMPLib._WMPOCXEvents_MediaCollectionAttributeStringAddedEvent, which contains the following properties related to this event.

Property Description
bstrAttribName System.String

Specifies the name of the attribute. For information about the attributes supported by Windows Media Player, see the Attribute Reference.

bstrAttribVal System.String

Specifies the value of the attribute.

Remarks

When a media item is added to the library, its metadata is added to the media collection and this event is fired for each attribute added.

Requirements

Version: Windows Media Player 9 Series or later

Namespace: AxWMPLib

Assembly: AxInterop.WMPLib.dll (automatically generated by Visual Studio)

See Also

Previous Next