Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Category property retrieves the category name for the IWMSPlugins collection.
string = IWMSPlugins.Category;
Property Value
A string containing the category name.
If this property fails, it throws an exception.
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
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlugins Plugins;
string strText;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPlugins object.
Plugins = Server.EventHandlers;
// Retrieve the category name for this
// collection of plug-ins.
strText = Plugins.Category;
}
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.