Previous | Next |
Indicates the client limit was changed.
Syntax
NSUniMgr_OnAdminClientLimit( DateTime, Status, IPAddress, Count, 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.
IPAddress
A String value specifying the IP address of the administrator.
Count
A Long value specifying the new client limit.
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 MaxClients property. This event is never fired unless the AdminEvents property is set to True.
Example
In the following example, the event handler for the OnAdminClientLimit event brings up a message box when the MaxClients property is changed. The message box shows the IP address of the administrative client that is making the change (in this case, that of the computer running the example). The last line in this example causes the event to be fired.
Sub NSUnicastMgr_OnAdminClientLimit( DateTime, hr, ip, Count, VirtualPath)
MsgBox ("Computer at IP address " & IPAddress & " changed MaxClients to " & Count & ".")
End Sub
' Event on next line opens message box
NSUnicastMgr.MaxClients = 200
See Also
Previous | Next |