BuildMaster SDK Reference
Version:

TryGetService<TService> Method

Returns the requested agent service interface if it is supported; otherwise returns null (Nothing in Visual Basic).

Syntax

public TService TryGetService<TService>()

Returns

Requested agent service if it is supported; otherwise null (Nothing in Visual Basic).