GetNrOfCOProviders
Syntax
dword GetNrOfCOProviders(communicationObject co)
Function
Returns the current number of provider endpoints at a (service-oriented) communication object. Note the number of endpoints may vary over time for some objects. The function is particularly useful to iterate over all providers.
Parameters
co Communication object
Return Values
The current number of provider endpoints.
for (i = 0; i < GetNrOfCOProviders(MirrorAdjustment); ++i){svc = MirrorAdjustment.consumerSide[CANoe,i];// ...}
[GetNrOfCOConsumers](/en/syntax/communication-objects/misc/getnrofcoconsumers) | [GetNrOfCOSenders](/en/syntax/communication-objects/math/getnrofcosenders) | [GetNrOfCOReceivers](/en/syntax/communication-objects/misc/getnrofcoreceivers)