Share via


IWMSServer.EventHandlers (Visual Basic .NET)

The EventHandlers property retrieves an IWMSPluginsIWMSPlugins Object (Visual Basic .NET) containing a collection of event notification and authorization plug-ins.

IWMSPlugins = IWMSServer.EventHandlers

Property Value

An IWMSPlugins object containing the collection of event notification and authorization plug-ins.

Remarks

This property is read-only.

The following system plug-ins can be accessed using the EventHandlers property.

Plug-in

Description

WMS Active Script Handler

Enables you to use a scripting language to customize the way that a Windows Media server authorizes and responds to internal events.

WMS Client Logging

Enables you to log to a file activity data for players connected over a unicast stream.

WMS IP Address Authorization

Enables you to specify content access permissions for specific IP addresses.

WMS NTFS ACL Authorization

Enables you to specify content access permissions for files and folders in an NTFS file system.

WMS Playlist Transform

Alters the behavior of playlist files.

WMS Publishing Points ACL Authorization

Enables you to specify content access permissions for specific users, servers, or groups, for either all publishing points or a specific publishing point.

WMS WMI Event Handler

Enables you to receive notification of all internal Windows Media server events through Windows Management Instrumentation (WMI).

To create custom event handler plug-ins, see Creating Event Notification Plug-ins.

Example

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

Private Sub GetEventHandlers()

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

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

    ' Retrieve the IWMSPlugins object
    ' containing event handler plug-ins.
    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

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

IWMSPlugins Object (Visual Basic .NET)

IWMSServer Object (Visual Basic .NET)