IWMSPlugin.CustomInterface (C#)
Previous | Next |
IWMSPlugin.CustomInterface (C#)
The CustomInterface property retrieves the administration object for the plug-in.
Syntax
object = Plugin.CustomInterface;
Property Value
An object for the administration UI.
Remarks
When you call the CustomInterface property, the server will load the plug-in if it is not already loaded. Some plug-ins do not have user objects.
This property is read-only.
Example Code
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. WMSServer Server; IWMSPlugins Plugins; IWMSPlugin Plugin; object CustomInterface; try { // Create a new WMSServer object. Server = new WMSServerClass(); // Retrieve the IWMSPlugins object. Plugins = Server.Authenticators; // Retrieve information about each plug-in. for (int i = 0; i < Plugins.Count; i++) { Plugin = Plugins[i]; // Retrieve a custom interface object, if one exists. CustomInterface = Plugin.CustomInterface; } } 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
Previous | Next |