> ## 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.

# CAPLfunctionGetConsumedServiceRef

# GetConsumedServiceRef (obsolete)

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

## Method Syntax

* `consumedServiceRef * [consumedEventRef](../Objects/CAPLfunctionConsumedEventRef.md)::GetConsumedService();`
* `consumedServiceRef * [consumedFieldRef](../Objects/CAPLfunctionConsumedFieldRef.md)::GetConsumedService();`
* `consumedServiceRef * [consumedPDURef](../Objects/CAPLfunctionConsumedPDURef.md)::GetConsumedService();`
* `consumedServiceRef * [consumedMethodRef](../Objects/CAPLfunctionConsumedMethodRef.md)::GetConsumedService();`

## Description

Returns a reference to the enclosing service for the referred object.

## Parameters

—

## Return Values

A reference to the enclosing service. An invalid reference if the object is invalid.

## Example

—

* Technical References are only available in English


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