# GetInfo\<T>(Engine, InfoTypeSingle)

{% code title="Declaration" %}

```csharp
public static T GetInfo<T>(Engine engine, InfoTypeSingle type)
```

{% endcode %}

{% code title="Example" %}

```csharp
SLNet.GetInfo<GetLicensesResponseMessage>(engine, InfoTypeSingle.Licenses);
```

{% endcode %}

{% code title="Result" %}

```csharp
GetLicensesResponseMessage
```

{% endcode %}

<table><thead><tr><th width="162.33333333333331">Type</th><th width="93">Name</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://learn.microsoft.com/dotnet/csharp/programming-guide/generics/generic-type-parameters">Generic Type</a></td><td>T</td><td>The expected ResponseMessage that is returned by the target call.</td></tr><tr><td><a href="https://docs.dataminer.services/develop/api/types/Skyline.DataMiner.Automation.Engine.html">Engine</a></td><td>engine</td><td>Interfaces with the DataMiner System from an Automation script.</td></tr><tr><td><a href="../../common/enums/infotypesingle">InfoTypeSingle</a></td><td>type</td><td>The target GetInfo call.</td></tr></tbody></table>

{% hint style="info" %}
To determine the expected return type, simply hover over the desired GetInfo call and an IntelliSense window should display it (e.g Returns: GetDocumentsResponseMessage).
{% endhint %}

{% hint style="info" %}
The GetInfo calls are the same as what the client (Cube) makes when it starts as well as during operation.
{% endhint %}

{% hint style="info" %}
This method is intended for single responses only, for calls that return an array of responses use this method instead [GetInfo(Engine, InfoTypeArray)](https://zamberetta.gitbook.io/auctus-class-library/reference/automation/slnet/getinfo-less-than-t-greater-than-engine-infotypearray).
{% endhint %}
