# OpcWriteNodesResponse Members

> Reference: Represents the response of the Write service of OPC UA, which provides the status of each write operation.

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">OpcWriteNodesResponse</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 [OpcServiceResponse&lt;OpcStatusCollection&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcserviceresponse-1/members), [OpcServiceResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcserviceresponse/members).

## Constructors

### OpcWriteNodesResponse

<span class="api-meta">3 overloads · since v2.7</span>

| Overload | Description |
|---|---|
| [OpcWriteNodesResponse(IOpcServiceResponseHeader)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/members#opcwritenodesresponse-opc-uafx-services-iopcserviceresponseheader)<span class="api-meta">since v2.7</span> | Initializes a new instance of the [OpcWriteNodesResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/) class using the specified `header`, no results and no diagnostic information. |
| [OpcWriteNodesResponse(IOpcServiceResponseHeader, OpcStatusCollection)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/members#opcwritenodesresponse-opc-uafx-services-iopcserviceresponseheader-opc-uafx-opcstatuscollection)<span class="api-meta">since v2.7</span> | Initializes a new instance of the [OpcWriteNodesResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/) class using the specified `header` and `results` and no diagnostic information. |
| [OpcWriteNodesResponse(IOpcServiceResponseHeader, OpcStatusCollection, DiagnosticInfoCollection)](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/members#opcwritenodesresponse-opc-uafx-services-iopcserviceresponseheader-opc-uafx-opcstatuscollection-opc-ua-diagnosticinfocollection)<span class="api-meta">since v2.7</span> | Initializes a new instance of the [OpcWriteNodesResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/) class using the specified `header`, `results` and `diagnosticInfos`. |

**Exceptions (all overloads)**

| Exception | Condition |
|---|---|
| [ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception) | The `header` is a null reference (Nothing in Visual Basic). |

#### OpcWriteNodesResponse(IOpcServiceResponseHeader)

<span class="api-meta">since v2.7</span>

Initializes a new instance of the [OpcWriteNodesResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/) class using the specified `header`, no results and no diagnostic information.

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

```csharp
public OpcWriteNodesResponse(IOpcServiceResponseHeader header)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Sub New(header As IOpcServiceResponseHeader)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceResponseHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcserviceresponseheader/) | The header of the response. |

#### OpcWriteNodesResponse(IOpcServiceResponseHeader, OpcStatusCollection)

<span class="api-meta">since v2.7</span>

Initializes a new instance of the [OpcWriteNodesResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/) class using the specified `header` and `results` and no diagnostic information.

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

```csharp
public OpcWriteNodesResponse(
    IOpcServiceResponseHeader header,
    OpcStatusCollection results)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Sub New(
    header As IOpcServiceResponseHeader,
    results As OpcStatusCollection)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceResponseHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcserviceresponseheader/) | The header of the response. |
| `results` | [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) | The results of the operations in the order of the commands of the request, or a null reference (Nothing in Visual Basic) for none. |

#### OpcWriteNodesResponse(IOpcServiceResponseHeader, OpcStatusCollection, DiagnosticInfoCollection)

<span class="api-meta">since v2.7</span>

Initializes a new instance of the [OpcWriteNodesResponse](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcwritenodesresponse/) class using the specified `header`, `results` and `diagnosticInfos`.

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

```csharp
public OpcWriteNodesResponse(
    IOpcServiceResponseHeader header,
    OpcStatusCollection results,
    DiagnosticInfoCollection diagnosticInfos)
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Sub New(
    header As IOpcServiceResponseHeader,
    results As OpcStatusCollection,
    diagnosticInfos As DiagnosticInfoCollection)
```

</div>

**Parameters**

| Name | Type | Description |
|---|---|---|
| `header` | [IOpcServiceResponseHeader](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.iopcserviceresponseheader/) | The header of the response. |
| `results` | [OpcStatusCollection](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcstatuscollection/) | The results of the operations in the order of the commands of the request, or a null reference (Nothing in Visual Basic) for none. |
| `diagnosticInfos` | <abbr title="OPC Foundation stack type, not documented here: Opc.Ua.DiagnosticInfoCollection">DiagnosticInfoCollection</abbr> | The diagnostic information of the operations, or a null reference (Nothing in Visual Basic) for none. |

## Methods

### GetResults

<span class="api-meta">override · since v2.19</span>

Retrieves the results of the operations of the service.

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

```csharp
public override IEnumerable<OpcResult> GetResults()
```

</div>

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

```vbnet
Public Overrides Function GetResults() As IEnumerable(Of OpcResult)
```

</div>

**Returns**

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/)&gt;

A sequence of the [OpcResult](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcresult/) of each write operation in the order of the commands of the request.

**Overrides**

[GetResults](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.services.opcserviceresponse/members#getresults)
