Partager via


IWMSPlugin Object (Visual Basic .NET)

You can use the IWMSPlugin object to manage a plug-in.

The IWMSPlugin object exposes the following properties.

Property

Description

CLSID

Retrieves the CLSID of the plug-in.

CustomInterface

Retrieves the administration object for the plug-in.

Enabled

Specifies and retrieves a Boolean value indicating whether the plug-in is enabled.

ErrorCode

Retrieves an HRESULT error code for the plug-in.

ErrorText

Retrieves the text associated with the plug-in error.

LoadType

Specifies and retrieves an enumeration value that indicates whether the server loads authentication, event notification, and authorization plug-ins as in-process or out-of-process objects.

MonikerName

Retrieves the moniker display name for a plug-in.

Name

Specifies and retrieves the name of a specific instance of the IWMSPlugin object.

Properties

Retrieves an IWMSNamedValues collection containing name-value pairs that describe the plug-in.

SelectionOrder

Specifies and retrieves a zero-based value that is used by the server to determine the order in which a plug-in will be selected for use.

Status

Retrieves the status of the plug-in.

SupportStatus

Retrieves an enumeration value that indicates which version of Windows Server is required to load the plug-in.

Version

Retrieves the version number of the plug-in.

Example

The following example illustrates how to retrieve an IWMSPlugin object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugins As IWMSPlugins
    Dim Plugin As IWMSPlugin
    Dim i As Integer

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

    ' Retrieve the IWMSPlugins object.
    Plugins = Server.Authenticators

    ' Retrieve information about each plug-in.
    For i = 0 To Plugins.Count - 1
        Plugin = Plugins.Item(i)
    Next i

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

Server Object Model (Visual Basic .NET)