TwclGattServer.DeleteService(Integer) Method

Deletes the service with given index.

Namespace: wclBluetooth
public
 function DeleteService(const Index: Integer): Integer;

Parameters

Index
Type: Integer

The service's index. The parameter must be in range between 0 and ServicesCount - 1.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.