IWMSServer.DiagnosticEvents (C#)

banner art

Previous Next

IWMSServer.DiagnosticEvents (C#)

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 throws an exception.

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

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;









    // Retrieve a list of diagnostic
    // events that have occurred on the server.
    DiagnosticEvents = Server.DiagnosticEvents;
}
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