IWMSPlugin.SupportStatus (Visual Basic .NET)

The SupportStatus property retrieves an enumeration value that indicates which version of Windows Server is required to load the plug-in.

WMS_PLUGIN_SUPPORT_TYPE = IWMSPlugin.SupportStatus

Property Value

A member of a WMS_PLUGIN_SUPPORT_TYPE enumeration type indicating whether the plug-in can be loaded with this version of Windows Server. This must be one of the following values.

Value

Description

WMS_PLUGIN_SUPPORT_IS_SUPPORTED

The plug-in is supported.

WMS_PLUGIN_SUPPORT_REQUIRES_ADVANCED_SERVER

The plug-in requires Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008 Enterprise; or Windows Server 2008 Datacenter.

Example

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub GetSupportStatus()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugins As IWMSPlugins
    Dim Plugin As IWMSPlugin
    Dim psSupported As WMS_PLUGIN_SUPPORT_TYPE

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPlugins object.
    Plugins = Server.PlaylistParsers

    ' Retrieve information about each plug-in.
    For Each Plugin In Plugins
        ' Retrieve the an enumeration value indicating
        ' whether the plug-in is supported.
        psSupported = Plugin.SupportStatus
    Next

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Reference

IWMSPlugin Object (Visual Basic .NET)