IWMSActiveScriptAdmin.ErrorCharacterPosition (Visual Basic .NET)
Previous | Next |
IWMSActiveScriptAdmin.ErrorCharacterPosition (Visual Basic .NET)
The ErrorCharacterPosition property retrieves the character position of the last error that occurred in the script when loaded by the script engine.
Syntax
Integer = IWMSActiveScriptAdmin.ErrorCharacterPosition
Property Value
Integer containing the character position of the error.
Remarks
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetErrorPosition() ' Declare variables. Dim Server As WMSServer Dim Plugin As IWMSPlugin Dim ActiveScriptAdmin As IWMSActiveScriptAdmin Dim iErrorPos As Integer 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 ' Retrieve the position of the last known script error. iErrorPos = ActiveScriptAdmin.ErrorCharacterPosition 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
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 |