IWMSServerLimits.DiagnosticEvents (Visual Basic .NET)

banner art

Previous Next

IWMSServerLimits.DiagnosticEvents (Visual Basic .NET)

The DiagnosticEvents property specifies and retrieves the maximum number of IWMSDiagnosticEvent objects that a specific IWMSDiagnosticEvents collection can contain.


Integer =

Property Value

Integer containing the maximum number of DiagnosticEvents objects.

If this property fails, it returns an error number.

Number Description
0x80070057 Integer is an invalid argument.


The default number of objects that this collection can contain is 200. Valid values are 100 to 2000.

After the specified limit is reached, the oldest object, as determined by its Time property, will be replaced when a new diagnostic event occurs.

Example Code

  Server As WMSServer
    Dim Limits As IWMSServerLimits
    Dim iValue As Integer

    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSServerLimits object for the server.
    Limits = Server.Limits

    ' Retrieve the maximum number of diagnostic events
    ' that the server keeps track of at once.
    iValue = Limits.DiagnosticEvents

    ' Set the maximum number of diagnostic events
    ' that the server keeps track of at once.
    Limits.DiagnosticEvents = 200


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