IWMSActiveScriptAdmin Object (Visual Basic .NET)
Previous | Next |
IWMSActiveScriptAdmin Object (Visual Basic .NET)
The IWMSActiveScriptAdmin object is the administration object for the WMS Active Script Event Handler plug-in. This plug-in enables scripting language access to the internal events fired by the server.
The IWMSActiveScriptAdmin object exposes the following properties.
Property | Description |
EnableDebugging | Specifies and retrieves a Boolean value that indicates whether the Microsoft Script Debugger can be used to debug the script. |
ErrorCharacterPosition | Retrieves the character position of the last error that occurred in the script when loaded by the script engine. |
ErrorLineNumber | Retrieves the line number of the last error that occurred in the script when loaded by the script engine. |
ErrorText | Retrieves the text of the last error that occurred in the script when loaded by the script engine. |
FileName | Sets and retrieves the path to the script file. |
Example Code
The following example illustrates how to retrieve an IWMSActiveScriptAdmin object.
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub RetrieveObj() ' Declare variables. Dim Server As WMSServer Dim Plugin As IWMSPlugin Dim ActiveScriptAdmin As IWMSActiveScriptAdmin Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve the plug-in to be configured. Plugin = Server.EventHandlers.Item( _ "WMS Active Script Event Handler") ' Retrieve the custom interface of the plug-in. ActiveScriptAdmin = Plugin.CustomInterface Catch excCom As COMException ' TODO: Handle COM exceptions. Catch exc As Exception ' TODO: Handle errors. Finally ' TODO: Clean-up code goes here. End Try End Sub
See Also
Previous | Next |