IWMSActiveScriptAdmin.EnableDebugging (C#)
Previous | Next |
IWMSActiveScriptAdmin.EnableDebugging (C#)
The EnableDebugging property specifies and retrieves a Boolean value that indicates whether the Microsoft Script Debugger can be used to debug the script.
Syntax
IWMSActiveScriptAdmin .EnableDebugging = bool; bool = IWMSActiveScriptAdmin.EnableDebugging;
Property Value
A bool indicating whether the Microsoft Script Debugger can be used.
Remarks
To enable script debugging, a script debugger must be installed on your computer and you must configure Windows Media Services to run in the System account. For more information, see WMS Active Script Event Handler Plug-in Properties.
Example Code
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. WMSServer Server; IWMSPlugin Plugin; IWMSActiveScriptAdmin ActiveScriptAdmin; try { // Create a new WMSServer object. Server = new WMSServerClass(); // Retrieve the plug-in to be configured. Plugin = Server.EventHandlers[ "WMS Active Script Event Handler"]; // Retrieve the custom interface of the plug-in. ActiveScriptAdmin = (IWMSActiveScriptAdmin)Plugin.CustomInterface; // Set a Boolean value indicating whether script debugging is enabled. ActiveScriptAdmin.EnableDebugging = true; } 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 |