Share via


IWMSPlugins Object (Visual Basic .NET)

The IWMSPlugins object contains a collection of IWMSPlugin objects.

The IWMSPlugins object exposes the following properties and methods.

Property

Description

Category

Retrieves the category name for the IWMSPlugins collection.

Count

Retrieves the number of IWMSPlugin objects contained in the IWMSPlugins collection.

Item

Retrieves an IWMSPluginIWMSPlugin Object (Visual Basic .NET) from the IWMSPlugins collection.

length

Retrieves the number of IWMSPlugin objects contained in the IWMSPlugins collection. This method is provided for JScript compatibility.

Method

Description

Clone

Creates a duplicate instance of a specific IWMSPlugin object.

Refresh

Updates the list of IWMSPlugin objects in the IWMSPlugins collection to reflect the plug-ins that are registered for use by the server.

Remove

Removes an IWMSPlugin object from the IWMSPlugins collection.

Example

The following example illustrates how to retrieve an IWMSPlugins object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugins As IWMSPlugins

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

    ' Retrieve the IWMSPlugins object.
    Plugins = Server.EventHandlers

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

Reference

IWMSServer Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)