IWMSServer.DiagnosticEvents (Visual Basic .NET)
Previous | Next |
IWMSServer.DiagnosticEvents (Visual Basic .NET)
The DiagnosticEvents property retrieves an IWMSDiagnosticEvents object that can be used to retrieve information about critical errors and warnings.
Syntax
IWMSDiagnosticEvents = IWMSServer.DiagnosticEvents
Property Value
An IWMSDiagnosticEvents object.
If this property fails, it returns an error number.
Number | Description |
0x8007000E | There is insufficient memory to complete the function. |
Remarks
This property is read-only. You can use the IWMSDiagnosticEvents object to retrieve an IWMSDiagnosticEvent object that you can use to diagnose server configuration and plug-in status problems.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetDiagnosticEvents() ' Declare variables. Dim Server As WMSServer Dim DiagnosticEvents As IWMSDiagnosticEvents Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve a list of diagnostic ' events that have occurred on the server. DiagnosticEvents = Server.DiagnosticEvents 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 |