# OpcNodeStream Class

> Reference: Provides a Stream for a binary variable node.

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

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.client">Opc.UaFx.Client</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">OpcNodeStream Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Provides a [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream) for a binary variable node.

## Syntax

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

```csharp
public class OpcNodeStream : Stream
```

</div>

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

```vbnet
Public Class OpcNodeStream
    Inherits Stream
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [MarshalByRefObject](https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject) → [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream) → **OpcNodeStream**

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></li>
</ul>

## Constructors

| Name | Description |
|---|---|
| [OpcNodeStream](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#opcnodestream)<span class="api-meta">3 overloads</span> | Initializes a new instance of the OpcNodeStream class using the specified `node`. |

## Properties

| Name | Description |
|---|---|
| [CanRead](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#canread)<span class="api-meta">override</span> | Gets a value indicating whether the current stream supports reading. |
| [CanSeek](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#canseek)<span class="api-meta">override</span> | Gets a value indicating whether the current stream supports seeking. |
| [CanWrite](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#canwrite)<span class="api-meta">override</span> | Gets a value indicating whether the current stream supports writing. |
| [Length](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#length)<span class="api-meta">override</span> | Gets the length in bytes of the stream. |
| [Node](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#node) | Gets the node whose value the stream accesses. |
| [Position](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#position)<span class="api-meta">override</span> | Gets or sets the position within the current stream. |

## Methods

| Name | Description |
|---|---|
| [Close](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#close)<span class="api-meta">override</span> | Closes the current stream and releases any resources associated with the current stream. |
| [Flush](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#flush)<span class="api-meta">override</span> | Clears all buffers for this stream and causes any buffered data to be written to the underlying device. |
| [Read](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#read)<span class="api-meta">override</span> | Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read. |
| [Seek](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#seek)<span class="api-meta">override</span> | Sets the position within the current stream. |
| [SetLength](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#setlength)<span class="api-meta">override</span> | Sets the length of the current stream. |
| [Write](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcnodestream/members#write)<span class="api-meta">override</span> | Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written. |

Inherits members from [Stream](https://learn.microsoft.com/dotnet/api/system.io.stream), [MarshalByRefObject](https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject).

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.8–v2.59 |
