Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The IWMSDiagnosticEvent object contains information about a specific event notice that you can use to diagnose problems that relate to the configuration of the server or the status of a plug-in.
The IWMSDiagnosticEvent object exposes the following properties.
Property |
Description |
|---|---|
AdditionalInfo |
Retrieves the text message associated with the event notice. |
ErrorCode |
Retrieves the HRESULT return code associated with the event notice. |
Name |
Retrieves the name of the plug-in or server limit associated with the event notice. |
NumberOfOccurrences |
Retrieves the number of times the event notice has occurred |
PublishingPointName |
Retrieves the name of the publishing point that raised the event notice. |
Time |
Retrieves the date and time of the event notice. |
Type |
Retrieves an enumeration value indicating the type of the event notice. |
Example
The following example illustrates how to retrieve an IWMSDiagnosticEvent object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim DiagnosticEvents As IWMSDiagnosticEvents
Dim DiagnosticEvent As IWMSDiagnosticEvent
Dim i As Integer
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSDiagnosticEvents object.
DiagnosticEvents = Server.DiagnosticEvents
' Retrieve information about each diagnostic event.
For i = 0 To DiagnosticEvents.Count - 1
DiagnosticEvent = DiagnosticEvents.Item(i)
Next i
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
Reference
IWMSPublishingPointLimits Object (Visual Basic .NET)
IWMSServerLimits Object (Visual Basic .NET)