IWMSCPPluginAdmin Object (Visual Basic .NET)

You can use the IWMSCPPluginAdmin object to manage control protocol plug-ins. The server includes the following system plug-ins:

  • WMS HTTP Server Control Protocol

  • WMS MMS Server Control Protocol

  • WMS RTSP Server Control Protocol

Note

Note   In Windows Server 2008 operating systems, the MMS protocol is not supported, and Windows Media Services does not provide an MMS Server Control Protocol plug-in.

The IWMSCPPluginAdmin object exposes the following properties.

Property

Description

BoundIPAddresses

Retrieves an IWMSBoundIPAddressesIWMSBoundIPAddresses Object (Visual Basic .NET) containing a list of bound IP addresses.

ControlProtocol

Retrieves the protocol name.

ListenAllIPAddresses

Specifies and retrieves a Boolean value indicating whether the server must monitor all IP addresses for incoming client requests.

Port

Specifies and retrieves the port number used by the protocol.

Example

The following example illustrates how to retrieve an IWMSCPPluginAdmin object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugin As IWMSPlugin
    Dim CPAdmin As IWMSCPPluginAdmin

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

    ' Retrieve the plug-in to be configured.
    Plugin = Server.ControlProtocols.Item("WMS RTSP Server Control Protocol")

    ' Retrieve the custom interface of the plug-in.
    CPAdmin = Plugin.CustomInterface

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

See Also

Concepts

System Plug-ins (Visual Basic .NET)