Click or drag to resize
GameModeServiceContainerAddService Method (Type, IService)
Adds the service of the specified serviceType.

Namespace: SampSharp.GameMode
Assembly: SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.7.6221.37952
Syntax
public void AddService(
	Type serviceType,
	IService service
)

Parameters

serviceType
Type: SystemType
Type of the service.
service
Type: SampSharp.GameModeIService
The service.
Exceptions
ExceptionCondition
ArgumentNullException serviceType or service
ArgumentExceptionserviceType must be of type IService
See Also