Share via


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.

Syntax

  ServerLimits
  .DiagnosticEvents
  
  =
  
  Integer
Integer =
  
  ServerLimits
  .DiagnosticEvents

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.

Remarks

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

Try
    ' 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










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