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.


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


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

    ' 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

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

End Sub


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


IWMSPlugin Object (Visual Basic .NET)