Click or drag to resize

CommandParameterInfo Constructor

Initializes a new instance of the CommandParameterInfo class.

Namespace:  SampSharp.GameMode.SAMP.Commands.Parameters
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public CommandParameterInfo(
	string name,
	ICommandParameterType commandParameterType,
	bool isOptional,
	Object defaultValue,
	bool isNullable
)

Parameters

name
Type: SystemString
The name.
commandParameterType
Type: SampSharp.GameMode.SAMP.Commands.ParameterTypesICommandParameterType
Type of the command parameter.
isOptional
Type: SystemBoolean
if set to true the parameter is optional.
defaultValue
Type: SystemObject
The default value.
isNullable
Type: SystemBoolean
A value indicating whether the parameter is allowed to be null.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if name or commandParameterType is null
See Also