# OpcServiceRequest&lt;TCommand, TCommands&gt; Members

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcServiceRequest&lt;TCommand, TCommands&gt;</a></dd>
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.services">Opc.UaFx.Services</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Inherits members from [OpcServiceRequest](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest/members).

## Constructors

### OpcServiceRequest

<span class="api-meta">protected · 4 overloads</span>

| Overload | Description |
|---|---|
| [OpcServiceRequest(IEnumerable&lt;TCommand&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest-2/members#opcservicerequest-system-collections-generic-ienumerable-of-t0)<span class="api-meta">protected</span> |  |
| [OpcServiceRequest(params TCommand\[\])](#opcservicerequest-t0-array)<span class="api-meta">protected</span> |  |
| [OpcServiceRequest(IOpcServiceRequestHeader, IEnumerable&lt;TCommand&gt;)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcservicerequest-2/members#opcservicerequest-opc-uafx-services-iopcservicerequestheader-system-collections-generic-ienumerable-of-t0)<span class="api-meta">protected</span> |  |
| [OpcServiceRequest(IOpcServiceRequestHeader, params TCommand\[\])](#opcservicerequest-opc-uafx-services-iopcservicerequestheader-t0-array)<span class="api-meta">protected</span> |  |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) |  |

#### OpcServiceRequest(IEnumerable&lt;TCommand&gt;)

<span class="api-meta">protected</span>

<div class="api-signature" data-lang="csharp">

```csharp
protected OpcServiceRequest(IEnumerable<TCommand> commands)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Protected Sub New(commands As IEnumerable(Of TCommand))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `commands` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;TCommand&gt; |  |

#### OpcServiceRequest(params TCommand\[\])

<span class="api-meta">protected</span>

<div class="api-signature" data-lang="csharp">

```csharp
protected OpcServiceRequest(params TCommand[] commands)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Protected Sub New(ParamArray commands As TCommand())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `commands` | params TCommand[] |  |

#### OpcServiceRequest(IOpcServiceRequestHeader, IEnumerable&lt;TCommand&gt;)

<span class="api-meta">protected</span>

<div class="api-signature" data-lang="csharp">

```csharp
protected OpcServiceRequest(
    IOpcServiceRequestHeader header,
    IEnumerable<TCommand> commands)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Protected Sub New(
    header As IOpcServiceRequestHeader,
    commands As IEnumerable(Of TCommand))
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceRequestHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequestheader/) |  |
| `commands` | [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;TCommand&gt; |  |

#### OpcServiceRequest(IOpcServiceRequestHeader, params TCommand\[\])

<span class="api-meta">protected</span>

<div class="api-signature" data-lang="csharp">

```csharp
protected OpcServiceRequest(
    IOpcServiceRequestHeader header,
    params TCommand[] commands)
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Protected Sub New(
    header As IOpcServiceRequestHeader,
    ParamArray commands As TCommand())
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceRequestHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcservicerequestheader/) |  |
| `commands` | params TCommand[] |  |

## Properties

### Commands

<div class="api-signature" data-lang="csharp">

```csharp
public TCommands Commands { get; protected set; }
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Property Commands As TCommands
```

</div>

**Property value**

TCommands
