Windows Media Services SDK banner art
PreviousNext

OnMaxBandWidth Event

Indicates the aggregate bandwidth limit was reached.

Syntax

NSUnicastMgr_OnMaxBandWidth( DateTime, Rate, VirtualPath )

Parameters

DateTime

A Date value indicating when the event occurred, expressed in Greenwich mean time.

Rate

A Long value specifying the current aggregate bandwidth limit.

VirtualPath

A String value specifying the alias of the virtual root that caused the limit to be exceeded. A NULL value indicates a system-wide limit has been exceeded.

Remarks

This event is called when the sum of all client bandwidth used exceeds the amount specified by the MaxBandWidth property. This event is never fired unless the AlertEvents property is set to True.

Example

Sub NSUnicastMgr_OnMaxBandWidth(DateTime, Rate, VirtualPath)
  ' Message box opens if bandwidth limit is exceeded
  MsgBox ("Maximum aggregate bandwidth of " & Rate & " was exceeded at " & DateTime & ".")
End Sub

See Also

MaxBandWidth, MaxFileBitRate, OnMaxFileBitRate

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.