다음을 통해 공유


Object Model Reference for Visual Basic .NET and C#

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

Using the Windows Media Player ActiveX control with Visual Basic .NET and C# is supported only for Windows Media Player 9 Series SDK and later.

 

This reference section provides documentation for the AxWindowsMediaPlayer object and for interfaces to the Windows Media Player ActiveX control. This functionality is available when you are using the Windows Media Player ActiveX control through COM interoperability in a Visual Studio .NET 2002 or later solution.

For a demonstration of using the Windows Media Player control with the .NET Framework, see the Visual Basic and C# samples included with this SDK.

The following sections document the Visual Basic .NET and C# objects and interfaces provided by the COM interop assembly that Visual Studio creates.

Note

Functionality that requires remoting the Windows Media Player control is not supported for .NET programming.

 

Section Description
AxWindowsMediaPlayer Object (VB and C#) List the properties, methods and events available to .NET programmers for the root object of the Windows Media Player control.
Interfaces for Visual Basic .NET and C# Lists the interfaces available to .NET programmers who use the Windows Media Player ActiveX control.

 

Windows Media Player Object Model Reference

Using the Windows Media Player Control in a .NET Framework Solution

Samples