IWMSServerLimits.DiagnosticEvents (C#)

banner art

Previous Next

IWMSServerLimits.DiagnosticEvents (C#)

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

Syntax

  ServerLimits
  .DiagnosticEvents
  
  =
  
  int
  ;

  int =
  
  ServerLimits
  .DiagnosticEvents;

Property Value

int containing the maximum number of IWMSDiagnosticEvent objects.

If this property fails, it throws an exception.

Number Description
0x80070057 int 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

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











    // Retrieve the IWMSServerLimits object for the server.
    ServerLimits = Server.Limits;















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