> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionAbstractSubscribeEvent

# Abstract\_SubscribeEvent (obsolete)

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

## Function Syntax

```plaintext theme={null}
long Abstract_SubscribeEvent(consumedEventRef * event);
```

## Description

Subscribes for a service event if abstract binding is used. Note that this is more **low-level**; usually it's more convenient to call [consumedEventRef::AbstractRequestEvent](../Methods/CAPLfunctionConsumedEventRefAbstractRequestEvent.md) on the event.

## Parameters

* **event**: Event which shall be subscribed.

## Return Values

* **0**: Success
* **1**: Endpoint is not simulated
* **2**: Communication object does not use abstract binding
* **\< 0**: Other error, e.g. event variable is not initialized

## Example

```plaintext theme={null}
Abstract_SubscribeEvent(MirrorAdjustment.consumerSide[0,0].Position);
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [Abstract\_UnsubscribeEvent](CAPLfunctionAbstractUnsubscribeEvent.md) • [SOMEIP\_SubscribeEventGroup](CAPLfunctionSOMEIPSubscribeEventGroup.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.