IWMSServer.EventHandlers (C#)

The EventHandlers property retrieves an IWMSPluginsIWMSPlugins Object (C#) 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

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;

// Declare variables.
WMSServer   Server;
IWMSPlugins Plugins;

try {
    // Create a new WMSServer object.
    Server = new WMSServerClass();

    // Retrieve the IWMSPlugins object
    // containing event handler plug-ins.
    Plugins = Server.EventHandlers;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

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 (C#)

IWMSServer Object (C#)