IWMSPlugin.SupportStatus (C#)
Previous | Next |
IWMSPlugin.SupportStatus (C#)
The SupportStatus property retrieves an enumeration value that indicates which version of Windows Server is required to load the plug-in.
Syntax
WMS_PLUGIN_SUPPORT_TYPE = IWMSPlugin .SupportStatus;
Property Value
Member of a WMS_PLUGIN_SUPPORT_TYPE enumeration type indicating whether the plug-in can be loaded with this version of Windows Server. This must be one of the following values.
Value | Description |
WMS_PLUGIN_SUPPORT_IS_SUPPORTED | The plug-in is supported. |
WMS_PLUGIN_SUPPORT_REQUIRES_ADVANCED_SERVER | The plug-in requires Windows Server 2003, Enterprise Edition, or Windows Server 2008 Enterprise. |
Remarks
This property is read-only.
Example Code
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. WMSServer Server; IWMSPlugins Plugins; IWMSPlugin Plugin; 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 the an enumeration value indicating // whether the plug-in is supported. WMS_PLUGIN_SUPPORT_TYPE psSupported; psSupported = Plugin.SupportStatus; } } 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 |