IWMSPlugin.CLSID (Visual Basic .NET)

The CLSID property retrieves the CLSID of the plug-in.

String = Plugin.CLSID

Property Value

A String containing the CLSID of the plug-in.

Remarks

This property is read-only. The GUID is returned in the following format: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}.

Example

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

Private Sub GetCLSID()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugins As IWMSPlugins
    Dim Plugin As IWMSPlugin
    Dim strText As String

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

    ' Retrieve the IWMSPlugins object.
    Plugins = Server.Authenticators

    ' Retrieve information about each plug-in.
    For Each Plugin In Plugins
        ' Retrieve the class ID for the plug-in.
        strText = Plugin.CLSID
    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)