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.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public void AddService(
	Type serviceType,
	IService service
)

Parameters

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