Click or drag to resize

KickUserRequest Constructor (Int32, String, Int32)

Creates a new KickUserRequest instance.

Namespace:  Sfs2X.Requests
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public KickUserRequest(
	int userId,
	string message,
	int delaySeconds
)

Parameters

userId
Type: SystemInt32
The id of the user to be kicked.
message
Type: SystemString
A custom message to be delivered to the user before kicking him; if null, the default message configured in the SmartFoxServer 2X Administration Tool is used (default = null).
delaySeconds
Type: SystemInt32
The number of seconds after which the user is kicked after receiving the kick message (default = 5).
Remarks
The instance must be passed to the SmartFox.Send method for the request to be performed.
See Also