Click or drag to resize

ExtensionRequest Constructor (String, ISFSObject, Room, Boolean)

Creates a new ExtensionRequest instance.

Namespace:  Sfs2X.Requests
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public ExtensionRequest(
	string extCmd,
	ISFSObject parameters,
	Room room,
	bool useUDP
)

Parameters

extCmd
Type: SystemString
The name of the command which identifies an action that should be executed by the server-side Extension.
parameters
Type: Sfs2X.Entities.DataISFSObject
An instance of SFSObject containing custom data to be sent to the Extension (default = null). Can be null if no data needs to be sent.
room
Type: Sfs2X.EntitiesRoom
If null, the specified command is sent to the current Zone server-side Extension; if not null, the command is sent to the server-side Extension attached to the passed Room (default = null).
useUDP
Type: SystemBoolean
If true, the UDP protocol is used to send the request to the server (default = false).
Remarks
The instance must be passed to the SmartFox.Send method for the request to be performed.
See Also