IWMSPlugins.Category (Visual Basic .NET)

banner art

Previous Next

IWMSPlugins.Category (Visual Basic .NET)

The Category property retrieves the category name for the IWMSPlugins collection.

Syntax

  String = IWMSPlugins.Category

Property Value

A String containing the category name.

If this property fails, it returns an error number.

Number Description
0x8007000E There is insufficient memory to complete the function.

Remarks

This property is read-only. The category identifies the general functionality of the plug-in. The following category names can be returned:

  • Authentication
  • Broadcast Data Sink
  • Cache
  • Control Protocol
  • Data Source
  • Event Notification and Authorization
  • Media Parser
  • Playlist Parser
  • Stream Filter
  • Unicast Data Sink

Example Code

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

Private Sub GetCategoryName()

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

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

    ' Retrieve the IWMSPlugins object.
    Plugins = Server.EventHandlers

    ' Retrieve the category name for this
    ' collection of plug-ins.
    strText = Plugins.Category

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

Previous Next