Expand Minimize
This topic has not yet been rated - Rate this topic

AxWindowsMediaPlayer.close method

The close method closes the current digital media file, stops playback in Windows Media Player and releases Windows Media Player resources.

Syntax



public void close();


Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

This method closes the current digital media file, not Windows Media Player itself.

Examples

The following example creates a button that, when clicked, stops playback in Windows Media Player and releases the resources in use. The AxWMPLib.AxWindowsMediaPlayer object is represented by the variable named player.



private void closeIt_Click(object sender, System.EventArgs e)
{
    // Close the Player. 
    player.close();
}


Requirements

Version

Windows Media Player 9 Series or later

Namespace

AxWMPLib

Assembly

AxInterop.WMPLib.dll (AxInterop.WMPLib.dll.dll)

See also

AxWindowsMediaPlayer Object (VB and C#)

 

 

Send comments about this topic to Microsoft

Build date: 11/9/2012

Community Additions

ADD
© 2013 Microsoft. All rights reserved.