Windows Media Services SDK banner art
PreviousNext

OnAdminBandwidthLimit Event

Indicates that the aggregate bandwidth limit was changed.

Syntax

NSUnicastMgr_OnAdminBandwidthLimit( DateTime, Status, IPAddress, MaxBandWidth, VirtualPath )

Parameters

DateTime

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

Status

A Long value specifying the HRESULT error code passed back when this event is fired. A value of S_OK (0) indicates success.

IPAAddress

A String value specifying the IP address of the administrator. If the connection is to a server called LocalHost, this value is 0.0.0.0, and the connection is made to the computer on which the script is running.

MaxBandWidth

A Long value specifying the new bit-rate limit, in bits per second.

VirtualPath

A String value specifying the alias of the virtual root that caused the limit to be exceeded. A NULL value (or empty string in Visual Basic) indicates a system-wide limit has been exceeded.

Remarks

This event is called whenever an administrative client sets the MaxBandWidth property. This event is never fired unless the AdminEvents property is set to True.

Example

Sub NSUnicastMgr_OnAdminBandwidthLimit( Time, Status, IPAddress, MaxBandwidth, VirtualPath )
  MsgBox ("Set by " & IPAddress & " to " & MaxBandwidth & " bps.")
End Sub
 ' Event on next line opens message box
NSUnicastMgr1.MaxBandwidth = 123456

See Also

MaxBandWidth, OnMaxBandWidth

PreviousNext


© 1996-1999 Microsoft Corporation. All rights reserved.