Share via


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

Windows Media Player SDK banner art

Previous Next

AxWindowsMediaPlayer.versionInfo (VB and C#)

The versionInfo property gets a value that specifies the version of the Windows Media Player.

[Visual Basic]
Public Overridable ReadOnly Property versionInfo As String

[C#]
public virtual string versionInfo {get;}

Property Value

A System.String that is the version information in the following format: "X.0.0.YYYY" where X represents the major version number and YYYY represents the build number.

Example Code

The following example creates a button that, when clicked, displays a message box containing the version information for Windows Media Player. The AxWMPLib.AxWindowsMediaPlayer object is represented by the variable named player.

[Visual Basic]
Public Sub showVersion_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles showVersion.Click

    ' Build the message containing the version info. 
    Dim message As String = ("Windows Media Player Version: " + player.versionInfo)

    ' Display the message. 
    System.Windows.Forms.MessageBox.Show(message)

End Sub

FakePre-7db9fc2ec6a044d0bba9299fbf599a5d-3e22390cc95c49a3a749b5624464c18f

private void showVersion_Click(object sender, System.EventArgs e)
{
    // Build the message containing the version info. 
    string message = ("Windows Media Player Version: " + player.versionInfo);

    // Display the message. 
    System.Windows.Forms.MessageBox.Show(message);
}

Requirements

Version: Windows Media Player 9 Series or later

Namespace: AxWMPLib

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

See Also

Previous Next