Skip to content

Reference

OpcFileMethods Members

Provides static (Shared in Visual Basic) methods to directly interact with the method nodes of a file node.

Reference

OpcFileMethods Members ​

Type
OpcFileMethods
Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Methods ​

Close ​

static · 4 overloads

OverloadDescription
Close(OpcFileNodeContext, uint)staticCloses the file maintained by the file node referenced by the context specified.
Close(OpcFileNodeContext, uint, OpcCallMethodOptions)staticCloses the file maintained by the file node referenced by the context specified.
Close(OpcClient, OpcNodeId, uint)staticCloses the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
Close(OpcClient, OpcNodeId, uint, OpcCallMethodOptions)staticCloses the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Close' method node does not exist or the method node signature does not define a valid method node to close a file handle.
OpcExceptionThe call of the method node failed (see exception details for more information).

Close(OpcFileNodeContext, uint) ​

static

Closes the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static void Close(OpcFileNodeContext context, uint fileHandle)
vbnet
<CLSCompliant(False)>
Public Shared Sub Close(context As OpcFileNodeContext, fileHandle As UInteger)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Close(OpcFileNodeContext, uint, OpcCallMethodOptions) ​

static

Closes the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static void Close(
    OpcFileNodeContext context,
    uint fileHandle,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Sub Close(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to close the file handle.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Close(OpcClient, OpcNodeId, uint) ​

static

Closes the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static void Close(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle)
vbnet
<CLSCompliant(False)>
Public Shared Sub Close(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Close' method is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

Close(OpcClient, OpcNodeId, uint, OpcCallMethodOptions) ​

static

Closes the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static void Close(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Sub Close(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Close' method is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to close the file handle.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

GetPosition ​

static · 4 overloads

OverloadDescription
GetPosition(OpcFileNodeContext, uint)staticRetrieves the position within the file maintained by the file node referenced by the context specified.
GetPosition(OpcFileNodeContext, uint, OpcCallMethodOptions)staticRetrieves the position within the file maintained by the file node referenced by the context specified.
GetPosition(OpcClient, OpcNodeId, uint)staticRetrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
GetPosition(OpcClient, OpcNodeId, uint, OpcCallMethodOptions)staticRetrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'GetPosition' method node does not exist or the method node signature does not define a valid method node to query the position in a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

GetPosition(OpcFileNodeContext, uint) ​

static

Retrieves the position within the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static ulong GetPosition(OpcFileNodeContext context, uint fileHandle)
vbnet
<CLSCompliant(False)>
Public Shared Function GetPosition(
    context As OpcFileNodeContext,
    fileHandle As UInteger) As ULong

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.

Returns

UInt64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

GetPosition(OpcFileNodeContext, uint, OpcCallMethodOptions) ​

static

Retrieves the position within the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static ulong GetPosition(
    OpcFileNodeContext context,
    uint fileHandle,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Function GetPosition(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    options As OpcCallMethodOptions) As ULong

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to query the position in a file.

Returns

UInt64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

GetPosition(OpcClient, OpcNodeId, uint) ​

static

Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static ulong GetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle)
vbnet
<CLSCompliant(False)>
Public Shared Function GetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger) As ULong

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'GetPosition' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.

Returns

UInt64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

GetPosition(OpcClient, OpcNodeId, uint, OpcCallMethodOptions) ​

static

Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static ulong GetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Function GetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    options As OpcCallMethodOptions) As ULong

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'GetPosition' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to query the position in a file.

Returns

UInt64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

IsFileNode ​

static · 2 overloads

OverloadDescription
IsFileNode(OpcFileNodeContext)staticInspects the file node referenced by the context specified whether the node fulfills the requirements of accessing it in the manner of a OPC UA FileType.
IsFileNode(OpcClient, OpcNodeId)staticInspects the file node referenced by the fileNodeId specified using the further specified OpcClient whether the node fulfills the requirements of accessing it in the manner of a OPC UA FileType.

IsFileNode(OpcFileNodeContext) ​

static

Inspects the file node referenced by the context specified whether the node fulfills the requirements of accessing it in the manner of a OPC UA FileType.

csharp
public static bool IsFileNode(OpcFileNodeContext context)
vbnet
Public Shared Function IsFileNode(context As OpcFileNodeContext) As Boolean

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to inspect the supposed file node.

Returns

Boolean

The value true if the supposed file node is concrete file node; otherwise the value false.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

IsFileNode(OpcClient, OpcNodeId) ​

static

Inspects the file node referenced by the fileNodeId specified using the further specified OpcClient whether the node fulfills the requirements of accessing it in the manner of a OPC UA FileType.

csharp
public static bool IsFileNode(OpcClient client, OpcNodeId fileNodeId)
vbnet
Public Shared Function IsFileNode(
    client As OpcClient,
    fileNodeId As OpcNodeId) As Boolean

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Open' method node is to be called.

Returns

Boolean

The value true if the supposed file node is concrete file node; otherwise the value false.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

Open ​

static · 4 overloads

OverloadDescription
Open(OpcFileNodeContext, OpcFileMode)staticOpens the file maintained by the file node referenced by the context specified.
Open(OpcFileNodeContext, OpcFileMode, OpcCallMethodOptions)staticOpens the file maintained by the file node referenced by the context specified.
Open(OpcClient, OpcNodeId, OpcFileMode)staticOpens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
Open(OpcClient, OpcNodeId, OpcFileMode, OpcCallMethodOptions)staticOpens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Open' method node does not exist or the method node signature does not define a valid method node to open a file handle.
OpcExceptionThe call of the method node failed (see exception details for more information).

Open(OpcFileNodeContext, OpcFileMode) ​

static

Opens the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static uint Open(OpcFileNodeContext context, OpcFileMode mode)
vbnet
<CLSCompliant(False)>
Public Shared Function Open(
    context As OpcFileNodeContext,
    mode As OpcFileMode) As UInteger

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.

Returns

UInt32

The session based file handle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the Close methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Open(OpcFileNodeContext, OpcFileMode, OpcCallMethodOptions) ​

static

Opens the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static uint Open(
    OpcFileNodeContext context,
    OpcFileMode mode,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Function Open(
    context As OpcFileNodeContext,
    mode As OpcFileMode,
    options As OpcCallMethodOptions) As UInteger

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to open a file handle.

Returns

UInt32

The session based file handle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the Close methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Open(OpcClient, OpcNodeId, OpcFileMode) ​

static

Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static uint Open(
    OpcClient client,
    OpcNodeId fileNodeId,
    OpcFileMode mode)
vbnet
<CLSCompliant(False)>
Public Shared Function Open(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    mode As OpcFileMode) As UInteger

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Open' method node is to be called.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.

Returns

UInt32

The session based file handle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the Close methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

Open(OpcClient, OpcNodeId, OpcFileMode, OpcCallMethodOptions) ​

static

Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static uint Open(
    OpcClient client,
    OpcNodeId fileNodeId,
    OpcFileMode mode,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Function Open(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    mode As OpcFileMode,
    options As OpcCallMethodOptions) As UInteger

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Open' method node is to be called.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to open a file handle.

Returns

UInt32

The session based file handle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the Close methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

Read ​

static · 4 overloads

OverloadDescription
Read(OpcFileNodeContext, uint, int)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
Read(OpcFileNodeContext, uint, int, OpcCallMethodOptions)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
Read(OpcClient, OpcNodeId, uint, int)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
Read(OpcClient, OpcNodeId, uint, int, OpcCallMethodOptions)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Read' method node does not exist or the method node signature does not define a valid method node to read data from a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

Read(OpcFileNodeContext, uint, int) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static byte[] Read(
    OpcFileNodeContext context,
    uint fileHandle,
    int length)
vbnet
<CLSCompliant(False)>
Public Shared Function Read(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    length As Integer) As Byte()

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
lengthInt32The number of bytes to read starting from the current position in the file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Read(OpcFileNodeContext, uint, int, OpcCallMethodOptions) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static byte[] Read(
    OpcFileNodeContext context,
    uint fileHandle,
    int length,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Function Read(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    length As Integer,
    options As OpcCallMethodOptions) As Byte()

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
lengthInt32The number of bytes to read starting from the current position in the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to read data from a file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Read(OpcClient, OpcNodeId, uint, int) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static byte[] Read(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    int length)
vbnet
<CLSCompliant(False)>
Public Shared Function Read(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    length As Integer) As Byte()

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Read' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
lengthInt32The number of bytes to read starting from the current position in the file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

Read(OpcClient, OpcNodeId, uint, int, OpcCallMethodOptions) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static byte[] Read(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    int length,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Function Read(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    length As Integer,
    options As OpcCallMethodOptions) As Byte()

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Read' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
lengthInt32The number of bytes to read starting from the current position in the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to read data from a file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

SecureClose ​

static · 6 overloads

OverloadDescription
SecureClose(SafeOpcFileHandle)staticCloses the file fileHandle specified.
SecureClose(SafeOpcFileHandle, OpcCallMethodOptions)staticCloses the file fileHandle specified.
SecureClose(OpcFileNodeContext, SafeOpcFileHandle)staticCloses the file maintained by the file node referenced by the context specified.
SecureClose(OpcFileNodeContext, SafeOpcFileHandle, OpcCallMethodOptions)staticCloses the file maintained by the file node referenced by the context specified.
SecureClose(OpcClient, OpcNodeId, SafeOpcFileHandle)staticCloses the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient.
SecureClose(OpcClient, OpcNodeId, SafeOpcFileHandle, OpcCallMethodOptions)staticCloses the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Close' method node does not exist or the method node signature does not define a valid method node to close a file handle.
OpcExceptionThe call of the method node failed (see exception details for more information).

SecureClose(SafeOpcFileHandle) ​

static

Closes the file fileHandle specified.

csharp
public static void SecureClose(SafeOpcFileHandle fileHandle)
vbnet
Public Shared Sub SecureClose(fileHandle As SafeOpcFileHandle)

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureClose(SafeOpcFileHandle, OpcCallMethodOptions) ​

static

Closes the file fileHandle specified.

csharp
public static void SecureClose(
    SafeOpcFileHandle fileHandle,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureClose(
    fileHandle As SafeOpcFileHandle,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to close the file handle.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureClose(OpcFileNodeContext, SafeOpcFileHandle) ​

static

Closes the file maintained by the file node referenced by the context specified.

csharp
public static void SecureClose(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle)
vbnet
Public Shared Sub SecureClose(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureClose(OpcFileNodeContext, SafeOpcFileHandle, OpcCallMethodOptions) ​

static

Closes the file maintained by the file node referenced by the context specified.

csharp
public static void SecureClose(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureClose(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to close the file handle.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureClose(OpcClient, OpcNodeId, SafeOpcFileHandle) ​

static

Closes the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient.

csharp
public static void SecureClose(
    OpcClient client,
    OpcNodeId nodeId,
    SafeOpcFileHandle fileHandle)
vbnet
Public Shared Sub SecureClose(
    client As OpcClient,
    nodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
nodeIdOpcNodeIdThe OpcNodeId of the file node its 'Close' method is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, nodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureClose(OpcClient, OpcNodeId, SafeOpcFileHandle, OpcCallMethodOptions) ​

static

Closes the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient.

csharp
public static void SecureClose(
    OpcClient client,
    OpcNodeId nodeId,
    SafeOpcFileHandle fileHandle,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureClose(
    client As OpcClient,
    nodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
nodeIdOpcNodeIdThe OpcNodeId of the file node its 'Close' method is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to close the file handle.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, nodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureGetPosition ​

static · 6 overloads

OverloadDescription
SecureGetPosition(SafeOpcFileHandle)staticRetrieves the position within the file identified by the fileHandle specified.
SecureGetPosition(SafeOpcFileHandle, OpcCallMethodOptions)staticRetrieves the position within the file identified by the fileHandle specified.
SecureGetPosition(OpcFileNodeContext, SafeOpcFileHandle)staticRetrieves the position within the file maintained by the file node referenced by the context specified.
SecureGetPosition(OpcFileNodeContext, SafeOpcFileHandle, OpcCallMethodOptions)staticRetrieves the position within the file maintained by the file node referenced by the context specified.
SecureGetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle)staticRetrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
SecureGetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, OpcCallMethodOptions)staticRetrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'GetPosition' method node does not exist or the method node signature does not define a valid method node to query the position in a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

SecureGetPosition(SafeOpcFileHandle) ​

static

Retrieves the position within the file identified by the fileHandle specified.

csharp
public static long SecureGetPosition(SafeOpcFileHandle fileHandle)
vbnet
Public Shared Function SecureGetPosition(
    fileHandle As SafeOpcFileHandle) As Long

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.

Returns

Int64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureGetPosition(SafeOpcFileHandle, OpcCallMethodOptions) ​

static

Retrieves the position within the file identified by the fileHandle specified.

csharp
public static long SecureGetPosition(
    SafeOpcFileHandle fileHandle,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureGetPosition(
    fileHandle As SafeOpcFileHandle,
    options As OpcCallMethodOptions) As Long

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to query the position in a file.

Returns

Int64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureGetPosition(OpcFileNodeContext, SafeOpcFileHandle) ​

static

Retrieves the position within the file maintained by the file node referenced by the context specified.

csharp
public static long SecureGetPosition(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle)
vbnet
Public Shared Function SecureGetPosition(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle) As Long

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.

Returns

Int64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureGetPosition(OpcFileNodeContext, SafeOpcFileHandle, OpcCallMethodOptions) ​

static

Retrieves the position within the file maintained by the file node referenced by the context specified.

csharp
public static long SecureGetPosition(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureGetPosition(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    options As OpcCallMethodOptions) As Long

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to query the position in a file.

Returns

Int64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureGetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle) ​

static

Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static long SecureGetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle)
vbnet
Public Shared Function SecureGetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle) As Long

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'GetPosition' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.

Returns

Int64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureGetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, OpcCallMethodOptions) ​

static

Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static long SecureGetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureGetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    options As OpcCallMethodOptions) As Long

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'GetPosition' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to query the position in a file.

Returns

Int64

The current position in the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureOpen ​

static · 4 overloads

OverloadDescription
SecureOpen(OpcFileNodeContext, OpcFileMode)staticOpens the file maintained by the file node referenced by the context specified.
SecureOpen(OpcFileNodeContext, OpcFileMode, OpcCallMethodOptions)staticOpens the file maintained by the file node referenced by the context specified.
SecureOpen(OpcClient, OpcNodeId, OpcFileMode)staticOpens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
SecureOpen(OpcClient, OpcNodeId, OpcFileMode, OpcCallMethodOptions)staticOpens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Open' method node does not exist or the method node signature does not define a valid method node to open a file handle.
OpcExceptionThe call of the method node failed (see exception details for more information).

SecureOpen(OpcFileNodeContext, OpcFileMode) ​

static

Opens the file maintained by the file node referenced by the context specified.

csharp
public static SafeOpcFileHandle SecureOpen(
    OpcFileNodeContext context,
    OpcFileMode mode)
vbnet
Public Shared Function SecureOpen(
    context As OpcFileNodeContext,
    mode As OpcFileMode) As SafeOpcFileHandle

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.

Returns

SafeOpcFileHandle

The session based SafeOpcFileHandle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the SecureClose methods or call the 'Close' method of the handle provided.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

SecureOpen(OpcFileNodeContext, OpcFileMode, OpcCallMethodOptions) ​

static

Opens the file maintained by the file node referenced by the context specified.

csharp
public static SafeOpcFileHandle SecureOpen(
    OpcFileNodeContext context,
    OpcFileMode mode,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureOpen(
    context As OpcFileNodeContext,
    mode As OpcFileMode,
    options As OpcCallMethodOptions) As SafeOpcFileHandle

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to open a file handle.

Returns

SafeOpcFileHandle

The session based SafeOpcFileHandle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the SecureClose methods or call the 'Close' method of the handle provided.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

SecureOpen(OpcClient, OpcNodeId, OpcFileMode) ​

static

Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static SafeOpcFileHandle SecureOpen(
    OpcClient client,
    OpcNodeId fileNodeId,
    OpcFileMode mode)
vbnet
Public Shared Function SecureOpen(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    mode As OpcFileMode) As SafeOpcFileHandle

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Open' method node is to be called.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.

Returns

SafeOpcFileHandle

The session based SafeOpcFileHandle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the SecureClose methods or call the 'Close' method of the handle provided.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

SecureOpen(OpcClient, OpcNodeId, OpcFileMode, OpcCallMethodOptions) ​

static

Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static SafeOpcFileHandle SecureOpen(
    OpcClient client,
    OpcNodeId fileNodeId,
    OpcFileMode mode,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureOpen(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    mode As OpcFileMode,
    options As OpcCallMethodOptions) As SafeOpcFileHandle

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Open' method node is to be called.
modeOpcFileModeOne of the OpcFileMode members or a combination of them. The value defines the type of requested access and how the system should open an existing file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to open a file handle.

Returns

SafeOpcFileHandle

The session based SafeOpcFileHandle to use to identify the file access requested for subsequent file method calls. To release the acquired file handle call one of the SecureClose methods or call the 'Close' method of the handle provided.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

SecureRead ​

static · 6 overloads

OverloadDescription
SecureRead(SafeOpcFileHandle, int)staticReads the number of bytes specified by length from the file identified by the fileHandle specified.
SecureRead(SafeOpcFileHandle, int, OpcCallMethodOptions)staticReads the number of bytes specified by length from the file identified by the fileHandle specified.
SecureRead(OpcFileNodeContext, SafeOpcFileHandle, int)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
SecureRead(OpcFileNodeContext, SafeOpcFileHandle, int, OpcCallMethodOptions)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
SecureRead(OpcClient, OpcNodeId, SafeOpcFileHandle, int)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
SecureRead(OpcClient, OpcNodeId, SafeOpcFileHandle, int, OpcCallMethodOptions)staticReads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Read' method node does not exist or the method node signature does not define a valid method node to read data from a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

SecureRead(SafeOpcFileHandle, int) ​

static

Reads the number of bytes specified by length from the file identified by the fileHandle specified.

csharp
public static byte[] SecureRead(SafeOpcFileHandle fileHandle, int length)
vbnet
Public Shared Function SecureRead(
    fileHandle As SafeOpcFileHandle,
    length As Integer) As Byte()

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
lengthInt32The number of bytes to read starting from the current position in the file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureRead(SafeOpcFileHandle, int, OpcCallMethodOptions) ​

static

Reads the number of bytes specified by length from the file identified by the fileHandle specified.

csharp
public static byte[] SecureRead(
    SafeOpcFileHandle fileHandle,
    int length,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureRead(
    fileHandle As SafeOpcFileHandle,
    length As Integer,
    options As OpcCallMethodOptions) As Byte()

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
lengthInt32The number of bytes to read starting from the current position in the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to read data from a file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureRead(OpcFileNodeContext, SafeOpcFileHandle, int) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.

csharp
public static byte[] SecureRead(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    int length)
vbnet
Public Shared Function SecureRead(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    length As Integer) As Byte()

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
lengthInt32The number of bytes to read starting from the current position in the file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureRead(OpcFileNodeContext, SafeOpcFileHandle, int, OpcCallMethodOptions) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.

csharp
public static byte[] SecureRead(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    int length,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureRead(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    length As Integer,
    options As OpcCallMethodOptions) As Byte()

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
lengthInt32The number of bytes to read starting from the current position in the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to read data from a file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureRead(OpcClient, OpcNodeId, SafeOpcFileHandle, int) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static byte[] SecureRead(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    int length)
vbnet
Public Shared Function SecureRead(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    length As Integer) As Byte()

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Read' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
lengthInt32The number of bytes to read starting from the current position in the file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureRead(OpcClient, OpcNodeId, SafeOpcFileHandle, int, OpcCallMethodOptions) ​

static

Reads the number of bytes specified by length from the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static byte[] SecureRead(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    int length,
    OpcCallMethodOptions options)
vbnet
Public Shared Function SecureRead(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    length As Integer,
    options As OpcCallMethodOptions) As Byte()

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Read' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
lengthInt32The number of bytes to read starting from the current position in the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to read data from a file.

Returns

Byte[]

The data read from the file. If the end of file is reached only the data till the end of the file is read. If the specified length is longer than the maximum allowed message size of the communication, only those data fitting into the message size is read.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureSetPosition ​

static · 6 overloads

OverloadDescription
SecureSetPosition(SafeOpcFileHandle, long)staticUpdates the position in the file identified by the fileHandle specified using position.
SecureSetPosition(SafeOpcFileHandle, long, OpcCallMethodOptions)staticUpdates the position in the file identified by the fileHandle specified using position.
SecureSetPosition(OpcFileNodeContext, SafeOpcFileHandle, long)staticUpdates the position in the file maintained by the file node referenced by the context specified using position.
SecureSetPosition(OpcFileNodeContext, SafeOpcFileHandle, long, OpcCallMethodOptions)staticUpdates the position in the file maintained by the file node referenced by the context specified using position.
SecureSetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, long)staticUpdates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.
SecureSetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, long, OpcCallMethodOptions)staticUpdates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'SetPosition' method node does not exist or the method node signature does not define a valid method node to update the position in a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

SecureSetPosition(SafeOpcFileHandle, long) ​

static

Updates the position in the file identified by the fileHandle specified using position.

csharp
public static void SecureSetPosition(
    SafeOpcFileHandle fileHandle,
    long position)
vbnet
Public Shared Sub SecureSetPosition(
    fileHandle As SafeOpcFileHandle,
    position As Long)

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
positionInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureSetPosition(SafeOpcFileHandle, long, OpcCallMethodOptions) ​

static

Updates the position in the file identified by the fileHandle specified using position.

csharp
public static void SecureSetPosition(
    SafeOpcFileHandle fileHandle,
    long position,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureSetPosition(
    fileHandle As SafeOpcFileHandle,
    position As Long,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
positionInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to update the position in a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).

SecureSetPosition(OpcFileNodeContext, SafeOpcFileHandle, long) ​

static

Updates the position in the file maintained by the file node referenced by the context specified using position.

csharp
public static void SecureSetPosition(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    long position)
vbnet
Public Shared Sub SecureSetPosition(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    position As Long)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
positionInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureSetPosition(OpcFileNodeContext, SafeOpcFileHandle, long, OpcCallMethodOptions) ​

static

Updates the position in the file maintained by the file node referenced by the context specified using position.

csharp
public static void SecureSetPosition(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    long position,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureSetPosition(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    position As Long,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
positionInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to update the position in a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context or fileHandle is a null reference (Nothing in Visual Basic).

SecureSetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, long) ​

static

Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.

csharp
public static void SecureSetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    long position)
vbnet
Public Shared Sub SecureSetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    position As Long)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'SetPosition' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
positionInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureSetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, long, OpcCallMethodOptions) ​

static

Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.

csharp
public static void SecureSetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    long position,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureSetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    position As Long,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'SetPosition' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
positionInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to update the position in a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or fileHandle is a null reference (Nothing in Visual Basic).

SecureWrite ​

static · 6 overloads

OverloadDescription
SecureWrite(SafeOpcFileHandle, byte[])staticWrites the data to the file identified by the fileHandle specified.
SecureWrite(SafeOpcFileHandle, byte[], OpcCallMethodOptions)staticWrites the data to the file identified by the fileHandle specified.
SecureWrite(OpcFileNodeContext, SafeOpcFileHandle, byte[])staticWrites the data to the file maintained by the file node referenced by the context specified.
SecureWrite(OpcFileNodeContext, SafeOpcFileHandle, byte[], OpcCallMethodOptions)staticWrites the data to the file maintained by the file node referenced by the context specified.
SecureWrite(OpcClient, OpcNodeId, SafeOpcFileHandle, byte[])staticWrites the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
SecureWrite(OpcClient, OpcNodeId, SafeOpcFileHandle, byte[], OpcCallMethodOptions)staticWrites the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
OpcExceptionThe call of the method node failed (see exception details for more information).

SecureWrite(SafeOpcFileHandle, byte[]) ​

static

Writes the data to the file identified by the fileHandle specified.

csharp
public static void SecureWrite(SafeOpcFileHandle fileHandle, byte[] data)
vbnet
Public Shared Sub SecureWrite(fileHandle As SafeOpcFileHandle, data As Byte())

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
dataByte[]The data to write to the file at the current position.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle is a null reference (Nothing in Visual Basic).
NotSupportedExceptionThe 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file.

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

SecureWrite(SafeOpcFileHandle, byte[], OpcCallMethodOptions) ​

static

Writes the data to the file identified by the fileHandle specified.

csharp
public static void SecureWrite(
    SafeOpcFileHandle fileHandle,
    byte[] data,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureWrite(
    fileHandle As SafeOpcFileHandle,
    data As Byte(),
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
dataByte[]The data to write to the file at the current position.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to write data to a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe fileHandle or data is a null reference (Nothing in Visual Basic).
NotSupportedException

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

SecureWrite(OpcFileNodeContext, SafeOpcFileHandle, byte[]) ​

static

Writes the data to the file maintained by the file node referenced by the context specified.

csharp
public static void SecureWrite(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    byte[] data)
vbnet
Public Shared Sub SecureWrite(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    data As Byte())

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
dataByte[]The data to write to the file at the current position.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context, fileHandle or data is a null reference (Nothing in Visual Basic).
NotSupportedExceptionThe 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file.

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

SecureWrite(OpcFileNodeContext, SafeOpcFileHandle, byte[], OpcCallMethodOptions) ​

static

Writes the data to the file maintained by the file node referenced by the context specified.

csharp
public static void SecureWrite(
    OpcFileNodeContext context,
    SafeOpcFileHandle fileHandle,
    byte[] data,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureWrite(
    context As OpcFileNodeContext,
    fileHandle As SafeOpcFileHandle,
    data As Byte(),
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
dataByte[]The data to write to the file at the current position.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to write data to a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context, fileHandle or data is a null reference (Nothing in Visual Basic).
NotSupportedExceptionThe 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file.

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

SecureWrite(OpcClient, OpcNodeId, SafeOpcFileHandle, byte[]) ​

static

Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static void SecureWrite(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    byte[] data)
vbnet
Public Shared Sub SecureWrite(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    data As Byte())

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Write' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
dataByte[]The data to write to the file at the current position.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId, fileHandle or data is a null reference (Nothing in Visual Basic).
NotSupportedExceptionThe 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file.

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

SecureWrite(OpcClient, OpcNodeId, SafeOpcFileHandle, byte[], OpcCallMethodOptions) ​

static

Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
public static void SecureWrite(
    OpcClient client,
    OpcNodeId fileNodeId,
    SafeOpcFileHandle fileHandle,
    byte[] data,
    OpcCallMethodOptions options)
vbnet
Public Shared Sub SecureWrite(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As SafeOpcFileHandle,
    data As Byte(),
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Write' method node is to be called.
fileHandleSafeOpcFileHandleThe SafeOpcFileHandle acquired by one of the SecureOpen methods.
dataByte[]The data to write to the file at the current position.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to write data to a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId, fileHandle or data is a null reference (Nothing in Visual Basic).
NotSupportedExceptionThe 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file.

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

SetPosition ​

static · 4 overloads

OverloadDescription
SetPosition(OpcFileNodeContext, uint, ulong)staticUpdates the position in the file maintained by the file node referenced by the context specified using position.
SetPosition(OpcFileNodeContext, uint, ulong, OpcCallMethodOptions)staticUpdates the position in the file maintained by the file node referenced by the context specified using position.
SetPosition(OpcClient, OpcNodeId, uint, ulong)staticUpdates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.
SetPosition(OpcClient, OpcNodeId, uint, ulong, OpcCallMethodOptions)staticUpdates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'SetPosition' method node does not exist or the method node signature does not define a valid method node to update the position in a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

SetPosition(OpcFileNodeContext, uint, ulong) ​

static

Updates the position in the file maintained by the file node referenced by the context specified using position.

csharp
[CLSCompliant(false)]
public static void SetPosition(
    OpcFileNodeContext context,
    uint fileHandle,
    ulong position)
vbnet
<CLSCompliant(False)>
Public Shared Sub SetPosition(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    position As ULong)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
positionUInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

SetPosition(OpcFileNodeContext, uint, ulong, OpcCallMethodOptions) ​

static

Updates the position in the file maintained by the file node referenced by the context specified using position.

csharp
[CLSCompliant(false)]
public static void SetPosition(
    OpcFileNodeContext context,
    uint fileHandle,
    ulong position,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Sub SetPosition(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    position As ULong,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
positionUInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to update the position in a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

SetPosition(OpcClient, OpcNodeId, uint, ulong) ​

static

Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.

csharp
[CLSCompliant(false)]
public static void SetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    ulong position)
vbnet
<CLSCompliant(False)>
Public Shared Sub SetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    position As ULong)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'SetPosition' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
positionUInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

SetPosition(OpcClient, OpcNodeId, uint, ulong, OpcCallMethodOptions) ​

static

Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.

csharp
[CLSCompliant(false)]
public static void SetPosition(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    ulong position,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Sub SetPosition(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    position As ULong,
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'SetPosition' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
positionUInt64The new position in the file. If position is greater than the file size the position is set to the end of the file.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to update the position in a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client or fileNodeId is a null reference (Nothing in Visual Basic).

Write ​

static · 4 overloads

OverloadDescription
Write(OpcFileNodeContext, uint, byte[])staticWrites the data to the file maintained by the file node referenced by the context specified.
Write(OpcFileNodeContext, uint, byte[], OpcCallMethodOptions)staticWrites the data to the file maintained by the file node referenced by the context specified.
Write(OpcClient, OpcNodeId, uint, byte[])staticWrites the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
Write(OpcClient, OpcNodeId, uint, byte[], OpcCallMethodOptions)staticWrites the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

Exceptions (all overloads)

ExceptionCondition
InvalidOperationExceptionThe file node does not exist.
NotSupportedExceptionThe 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file.
OpcExceptionThe call of the method node failed (see exception details for more information).

Write(OpcFileNodeContext, uint, byte[]) ​

static

Writes the data to the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static void Write(
    OpcFileNodeContext context,
    uint fileHandle,
    byte[] data)
vbnet
<CLSCompliant(False)>
Public Shared Sub Write(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    data As Byte())

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
dataByte[]The data to write to the file at the current position.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

Write(OpcFileNodeContext, uint, byte[], OpcCallMethodOptions) ​

static

Writes the data to the file maintained by the file node referenced by the context specified.

csharp
[CLSCompliant(false)]
public static void Write(
    OpcFileNodeContext context,
    uint fileHandle,
    byte[] data,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Sub Write(
    context As OpcFileNodeContext,
    fileHandle As UInteger,
    data As Byte(),
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
contextOpcFileNodeContextThe OpcFileNodeContext to use to access the file node.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
dataByte[]The data to write to the file at the current position.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to write data to a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context is a null reference (Nothing in Visual Basic).

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

Write(OpcClient, OpcNodeId, uint, byte[]) ​

static

Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static void Write(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    byte[] data)
vbnet
<CLSCompliant(False)>
Public Shared Sub Write(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    data As Byte())

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Write' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
dataByte[]The data to write to the file at the current position.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or data is a null reference (Nothing in Visual Basic).

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

Write(OpcClient, OpcNodeId, uint, byte[], OpcCallMethodOptions) ​

static

Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.

csharp
[CLSCompliant(false)]
public static void Write(
    OpcClient client,
    OpcNodeId fileNodeId,
    uint fileHandle,
    byte[] data,
    OpcCallMethodOptions options)
vbnet
<CLSCompliant(False)>
Public Shared Sub Write(
    client As OpcClient,
    fileNodeId As OpcNodeId,
    fileHandle As UInteger,
    data As Byte(),
    options As OpcCallMethodOptions)

Parameters

NameTypeDescription
clientOpcClientThe OpcClient to use to call the method.
fileNodeIdOpcNodeIdThe OpcNodeId of the file node its 'Write' method node is to be called.
fileHandleUInt32The numeric file handle acquired by one of the Open methods.
dataByte[]The data to write to the file at the current position.
optionsOpcCallMethodOptionsThe OpcCallMethodOptions to apply before and after calling the method node to write data to a file.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe client, fileNodeId or data is a null reference (Nothing in Visual Basic).

Remarks

It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.