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
| Overload | Description |
|---|---|
| Close( | Closes the file maintained by the file node referenced by the context specified. |
| Close( | Closes the file maintained by the file node referenced by the context specified. |
| Close( | Closes the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| Close( | Closes the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Close' method node does not exist or the method node signature does not define a valid method node to close a file handle. |
| OpcException | The call of the method node failed ( |
Close(OpcFileNodeContext, uint)
Closes the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static void Close(OpcFileNodeContext context, uint fileHandle)<CLSCompliant(False)>
Public Shared Sub Close(context As OpcFileNodeContext, fileHandle As UInteger)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Close(OpcFileNodeContext, uint, OpcCallMethodOptions)
Closes the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static void Close(
OpcFileNodeContext context,
uint fileHandle,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Sub Close(
context As OpcFileNodeContext,
fileHandle As UInteger,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Close(OpcClient, OpcNodeId, uint)
Closes the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static void Close(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle)<CLSCompliant(False)>
Public Shared Sub Close(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Close' method is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
Close(OpcClient, OpcNodeId, uint, OpcCallMethodOptions)
Closes the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static void Close(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Sub Close(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Close' method is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
GetPosition
| Overload | Description |
|---|---|
| GetPosition( | Retrieves the position within the file maintained by the file node referenced by the context specified. |
| GetPosition( | Retrieves the position within the file maintained by the file node referenced by the context specified. |
| GetPosition( | Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| GetPosition( | Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The '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. |
| OpcException | The call of the method node failed ( |
GetPosition(OpcFileNodeContext, uint)
Retrieves the position within the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static ulong GetPosition(OpcFileNodeContext context, uint fileHandle)<CLSCompliant(False)>
Public Shared Function GetPosition(
context As OpcFileNodeContext,
fileHandle As UInteger) As ULongParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
GetPosition(OpcFileNodeContext, uint, OpcCallMethodOptions)
Retrieves the position within the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static ulong GetPosition(
OpcFileNodeContext context,
uint fileHandle,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Function GetPosition(
context As OpcFileNodeContext,
fileHandle As UInteger,
options As OpcCallMethodOptions) As ULongParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
options | Opc | The Opc |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
GetPosition(OpcClient, OpcNodeId, uint)
Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static ulong GetPosition(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle)<CLSCompliant(False)>
Public Shared Function GetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger) As ULongParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'GetPosition' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
GetPosition(OpcClient, OpcNodeId, uint, OpcCallMethodOptions)
Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static ulong GetPosition(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Function GetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
options As OpcCallMethodOptions) As ULongParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'GetPosition' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
options | Opc | The Opc |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
IsFileNode
| Overload | Description |
|---|---|
| IsFileNode( | 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. |
| IsFileNode( | 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. |
IsFileNode(OpcFileNodeContext)
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.
public static bool IsFileNode(OpcFileNodeContext context)Public Shared Function IsFileNode(context As OpcFileNodeContext) As BooleanParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
Returns
The value true if the supposed file node is concrete file node; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
IsFileNode(OpcClient, OpcNodeId)
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.
public static bool IsFileNode(OpcClient client, OpcNodeId fileNodeId)Public Shared Function IsFileNode(
client As OpcClient,
fileNodeId As OpcNodeId) As BooleanParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Open' method node is to be called. |
Returns
The value true if the supposed file node is concrete file node; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
Open
| Overload | Description |
|---|---|
| Open( | Opens the file maintained by the file node referenced by the context specified. |
| Open( | Opens the file maintained by the file node referenced by the context specified. |
| Open( | Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| Open( | Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Open' method node does not exist or the method node signature does not define a valid method node to open a file handle. |
| OpcException | The call of the method node failed ( |
Open(OpcFileNodeContext, OpcFileMode)
Opens the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static uint Open(OpcFileNodeContext context, OpcFileMode mode)<CLSCompliant(False)>
Public Shared Function Open(
context As OpcFileNodeContext,
mode As OpcFileMode) As UIntegerParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
mode | OpcFileMode | One 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
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
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Open(OpcFileNodeContext, OpcFileMode, OpcCallMethodOptions)
Opens the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static uint Open(
OpcFileNodeContext context,
OpcFileMode mode,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Function Open(
context As OpcFileNodeContext,
mode As OpcFileMode,
options As OpcCallMethodOptions) As UIntegerParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
mode | OpcFileMode | One 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. |
options | Opc | The Opc |
Returns
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
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Open(OpcClient, OpcNodeId, OpcFileMode)
Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static uint Open(
OpcClient client,
OpcNodeId fileNodeId,
OpcFileMode mode)<CLSCompliant(False)>
Public Shared Function Open(
client As OpcClient,
fileNodeId As OpcNodeId,
mode As OpcFileMode) As UIntegerParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Open' method node is to be called. |
mode | OpcFileMode | One 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
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
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
Open(OpcClient, OpcNodeId, OpcFileMode, OpcCallMethodOptions)
Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static uint Open(
OpcClient client,
OpcNodeId fileNodeId,
OpcFileMode mode,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Function Open(
client As OpcClient,
fileNodeId As OpcNodeId,
mode As OpcFileMode,
options As OpcCallMethodOptions) As UIntegerParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Open' method node is to be called. |
mode | OpcFileMode | One 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. |
options | Opc | The Opc |
Returns
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
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
Read
| Overload | Description |
|---|---|
| Read( | Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified. |
| Read( | Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified. |
| Read( | 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. |
| Read( | 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. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Read' method node does not exist or the method node signature does not define a valid method node to read data from a file. |
| OpcException | The call of the method node failed ( |
Read(OpcFileNodeContext, uint, int)
Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static byte[] Read(
OpcFileNodeContext context,
uint fileHandle,
int length)<CLSCompliant(False)>
Public Shared Function Read(
context As OpcFileNodeContext,
fileHandle As UInteger,
length As Integer) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
length | Int32 | The 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
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Read(OpcFileNodeContext, uint, int, OpcCallMethodOptions)
Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static byte[] Read(
OpcFileNodeContext context,
uint fileHandle,
int length,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Function Read(
context As OpcFileNodeContext,
fileHandle As UInteger,
length As Integer,
options As OpcCallMethodOptions) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
length | Int32 | The number of bytes to read starting from the current position in the file. |
options | Opc | The Opc |
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
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
Read(OpcClient, OpcNodeId, uint, int)
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.
[CLSCompliant(false)]
public static byte[] Read(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
int length)<CLSCompliant(False)>
Public Shared Function Read(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
length As Integer) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Read' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
length | Int32 | The 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
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
Read(OpcClient, OpcNodeId, uint, int, OpcCallMethodOptions)
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.
[CLSCompliant(false)]
public static byte[] Read(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
int length,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Function Read(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
length As Integer,
options As OpcCallMethodOptions) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Read' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
length | Int32 | The number of bytes to read starting from the current position in the file. |
options | Opc | The Opc |
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
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
SecureClose
| Overload | Description |
|---|---|
| SecureClose( | Closes the file fileHandle specified. |
| SecureClose( | Closes the file fileHandle specified. |
| SecureClose( | Closes the file maintained by the file node referenced by the context specified. |
| SecureClose( | Closes the file maintained by the file node referenced by the context specified. |
| SecureClose( | Closes the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient. |
| SecureClose( | Closes the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Close' method node does not exist or the method node signature does not define a valid method node to close a file handle. |
| OpcException | The call of the method node failed ( |
SecureClose(SafeOpcFileHandle)
Closes the file fileHandle specified.
public static void SecureClose(SafeOpcFileHandle fileHandle)Public Shared Sub SecureClose(fileHandle As SafeOpcFileHandle)Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureClose(SafeOpcFileHandle, OpcCallMethodOptions)
Closes the file fileHandle specified.
public static void SecureClose(
SafeOpcFileHandle fileHandle,
OpcCallMethodOptions options)Public Shared Sub SecureClose(
fileHandle As SafeOpcFileHandle,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureClose(OpcFileNodeContext, SafeOpcFileHandle)
Closes the file maintained by the file node referenced by the context specified.
public static void SecureClose(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle)Public Shared Sub SecureClose(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureClose(OpcFileNodeContext, SafeOpcFileHandle, OpcCallMethodOptions)
Closes the file maintained by the file node referenced by the context specified.
public static void SecureClose(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
OpcCallMethodOptions options)Public Shared Sub SecureClose(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureClose(OpcClient, OpcNodeId, SafeOpcFileHandle)
Closes the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient.
public static void SecureClose(
OpcClient client,
OpcNodeId nodeId,
SafeOpcFileHandle fileHandle)Public Shared Sub SecureClose(
client As OpcClient,
nodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
nodeId | OpcNodeId | The OpcNodeId of the file node its 'Close' method is to be called. |
fileHandle | Safe | The Safe |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, nodeId or fileHandle is a null reference ( |
SecureClose(OpcClient, OpcNodeId, SafeOpcFileHandle, OpcCallMethodOptions)
Closes the file maintained by the file node referenced by the nodeId specified using the further specified OpcClient.
public static void SecureClose(
OpcClient client,
OpcNodeId nodeId,
SafeOpcFileHandle fileHandle,
OpcCallMethodOptions options)Public Shared Sub SecureClose(
client As OpcClient,
nodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
nodeId | OpcNodeId | The OpcNodeId of the file node its 'Close' method is to be called. |
fileHandle | Safe | The Safe |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, nodeId or fileHandle is a null reference ( |
SecureGetPosition
| Overload | Description |
|---|---|
| Secure | Retrieves the position within the file identified by the fileHandle specified. |
| Secure | Retrieves the position within the file identified by the fileHandle specified. |
| Secure | Retrieves the position within the file maintained by the file node referenced by the context specified. |
| Secure | Retrieves the position within the file maintained by the file node referenced by the context specified. |
| Secure | Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| Secure | Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The '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. |
| OpcException | The call of the method node failed ( |
SecureGetPosition(SafeOpcFileHandle)
Retrieves the position within the file identified by the fileHandle specified.
public static long SecureGetPosition(SafeOpcFileHandle fileHandle)Public Shared Function SecureGetPosition(
fileHandle As SafeOpcFileHandle) As LongParameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureGetPosition(SafeOpcFileHandle, OpcCallMethodOptions)
Retrieves the position within the file identified by the fileHandle specified.
public static long SecureGetPosition(
SafeOpcFileHandle fileHandle,
OpcCallMethodOptions options)Public Shared Function SecureGetPosition(
fileHandle As SafeOpcFileHandle,
options As OpcCallMethodOptions) As LongParameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
options | Opc | The Opc |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureGetPosition(OpcFileNodeContext, SafeOpcFileHandle)
Retrieves the position within the file maintained by the file node referenced by the context specified.
public static long SecureGetPosition(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle)Public Shared Function SecureGetPosition(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle) As LongParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureGetPosition(OpcFileNodeContext, SafeOpcFileHandle, OpcCallMethodOptions)
Retrieves the position within the file maintained by the file node referenced by the context specified.
public static long SecureGetPosition(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
OpcCallMethodOptions options)Public Shared Function SecureGetPosition(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
options As OpcCallMethodOptions) As LongParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
options | Opc | The Opc |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureGetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle)
Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
public static long SecureGetPosition(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle)Public Shared Function SecureGetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle) As LongParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'GetPosition' method node is to be called. |
fileHandle | Safe | The Safe |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or fileHandle is a null reference ( |
SecureGetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, OpcCallMethodOptions)
Retrieves the position within the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
public static long SecureGetPosition(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
OpcCallMethodOptions options)Public Shared Function SecureGetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
options As OpcCallMethodOptions) As LongParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'GetPosition' method node is to be called. |
fileHandle | Safe | The Safe |
options | Opc | The Opc |
Returns
The current position in the file.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or fileHandle is a null reference ( |
SecureOpen
| Overload | Description |
|---|---|
| SecureOpen( | Opens the file maintained by the file node referenced by the context specified. |
| SecureOpen( | Opens the file maintained by the file node referenced by the context specified. |
| SecureOpen( | Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| SecureOpen( | Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Open' method node does not exist or the method node signature does not define a valid method node to open a file handle. |
| OpcException | The call of the method node failed ( |
SecureOpen(OpcFileNodeContext, OpcFileMode)
Opens the file maintained by the file node referenced by the context specified.
public static SafeOpcFileHandle SecureOpen(
OpcFileNodeContext context,
OpcFileMode mode)Public Shared Function SecureOpen(
context As OpcFileNodeContext,
mode As OpcFileMode) As SafeOpcFileHandleParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
mode | OpcFileMode | One 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
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
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
SecureOpen(OpcFileNodeContext, OpcFileMode, OpcCallMethodOptions)
Opens the file maintained by the file node referenced by the context specified.
public static SafeOpcFileHandle SecureOpen(
OpcFileNodeContext context,
OpcFileMode mode,
OpcCallMethodOptions options)Public Shared Function SecureOpen(
context As OpcFileNodeContext,
mode As OpcFileMode,
options As OpcCallMethodOptions) As SafeOpcFileHandleParameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
mode | OpcFileMode | One 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. |
options | Opc | The Opc |
Returns
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
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
SecureOpen(OpcClient, OpcNodeId, OpcFileMode)
Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
public static SafeOpcFileHandle SecureOpen(
OpcClient client,
OpcNodeId fileNodeId,
OpcFileMode mode)Public Shared Function SecureOpen(
client As OpcClient,
fileNodeId As OpcNodeId,
mode As OpcFileMode) As SafeOpcFileHandleParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Open' method node is to be called. |
mode | OpcFileMode | One 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
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
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
SecureOpen(OpcClient, OpcNodeId, OpcFileMode, OpcCallMethodOptions)
Opens the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
public static SafeOpcFileHandle SecureOpen(
OpcClient client,
OpcNodeId fileNodeId,
OpcFileMode mode,
OpcCallMethodOptions options)Public Shared Function SecureOpen(
client As OpcClient,
fileNodeId As OpcNodeId,
mode As OpcFileMode,
options As OpcCallMethodOptions) As SafeOpcFileHandleParameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Open' method node is to be called. |
mode | OpcFileMode | One 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. |
options | Opc | The Opc |
Returns
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
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
SecureRead
| Overload | Description |
|---|---|
| SecureRead( | Reads the number of bytes specified by length from the file identified by the fileHandle specified. |
| SecureRead( | Reads the number of bytes specified by length from the file identified by the fileHandle specified. |
| SecureRead( | Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified. |
| SecureRead( | Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified. |
| SecureRead( | 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. |
| SecureRead( | 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. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Read' method node does not exist or the method node signature does not define a valid method node to read data from a file. |
| OpcException | The call of the method node failed ( |
SecureRead(SafeOpcFileHandle, int)
Reads the number of bytes specified by length from the file identified by the fileHandle specified.
public static byte[] SecureRead(SafeOpcFileHandle fileHandle, int length)Public Shared Function SecureRead(
fileHandle As SafeOpcFileHandle,
length As Integer) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
length | Int32 | The 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
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureRead(SafeOpcFileHandle, int, OpcCallMethodOptions)
Reads the number of bytes specified by length from the file identified by the fileHandle specified.
public static byte[] SecureRead(
SafeOpcFileHandle fileHandle,
int length,
OpcCallMethodOptions options)Public Shared Function SecureRead(
fileHandle As SafeOpcFileHandle,
length As Integer,
options As OpcCallMethodOptions) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
length | Int32 | The number of bytes to read starting from the current position in the file. |
options | Opc | The Opc |
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
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureRead(OpcFileNodeContext, SafeOpcFileHandle, int)
Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
public static byte[] SecureRead(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
int length)Public Shared Function SecureRead(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
length As Integer) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
length | Int32 | The 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
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureRead(OpcFileNodeContext, SafeOpcFileHandle, int, OpcCallMethodOptions)
Reads the number of bytes specified by length from the file maintained by the file node referenced by the context specified.
public static byte[] SecureRead(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
int length,
OpcCallMethodOptions options)Public Shared Function SecureRead(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
length As Integer,
options As OpcCallMethodOptions) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
length | Int32 | The number of bytes to read starting from the current position in the file. |
options | Opc | The Opc |
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
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureRead(OpcClient, OpcNodeId, SafeOpcFileHandle, int)
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.
public static byte[] SecureRead(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
int length)Public Shared Function SecureRead(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
length As Integer) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Read' method node is to be called. |
fileHandle | Safe | The Safe |
length | Int32 | The 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
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or fileHandle is a null reference ( |
SecureRead(OpcClient, OpcNodeId, SafeOpcFileHandle, int, OpcCallMethodOptions)
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.
public static byte[] SecureRead(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
int length,
OpcCallMethodOptions options)Public Shared Function SecureRead(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
length As Integer,
options As OpcCallMethodOptions) As Byte()Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Read' method node is to be called. |
fileHandle | Safe | The Safe |
length | Int32 | The number of bytes to read starting from the current position in the file. |
options | Opc | The Opc |
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
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or fileHandle is a null reference ( |
SecureSetPosition
| Overload | Description |
|---|---|
| Secure | Updates the position in the file identified by the fileHandle specified using position. |
| Secure | Updates the position in the file identified by the fileHandle specified using position. |
| Secure | Updates the position in the file maintained by the file node referenced by the context specified using position. |
| Secure | Updates the position in the file maintained by the file node referenced by the context specified using position. |
| Secure | Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position. |
| Secure | Updates 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)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The '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. |
| OpcException | The call of the method node failed ( |
SecureSetPosition(SafeOpcFileHandle, long)
Updates the position in the file identified by the fileHandle specified using position.
public static void SecureSetPosition(
SafeOpcFileHandle fileHandle,
long position)Public Shared Sub SecureSetPosition(
fileHandle As SafeOpcFileHandle,
position As Long)Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
position | Int64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureSetPosition(SafeOpcFileHandle, long, OpcCallMethodOptions)
Updates the position in the file identified by the fileHandle specified using position.
public static void SecureSetPosition(
SafeOpcFileHandle fileHandle,
long position,
OpcCallMethodOptions options)Public Shared Sub SecureSetPosition(
fileHandle As SafeOpcFileHandle,
position As Long,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
position | Int64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
SecureSetPosition(OpcFileNodeContext, SafeOpcFileHandle, long)
Updates the position in the file maintained by the file node referenced by the context specified using position.
public static void SecureSetPosition(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
long position)Public Shared Sub SecureSetPosition(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
position As Long)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
position | Int64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureSetPosition(OpcFileNodeContext, SafeOpcFileHandle, long, OpcCallMethodOptions)
Updates the position in the file maintained by the file node referenced by the context specified using position.
public static void SecureSetPosition(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
long position,
OpcCallMethodOptions options)Public Shared Sub SecureSetPosition(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
position As Long,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
position | Int64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context or fileHandle is a null reference ( |
SecureSetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, long)
Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.
public static void SecureSetPosition(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
long position)Public Shared Sub SecureSetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
position As Long)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'SetPosition' method node is to be called. |
fileHandle | Safe | The Safe |
position | Int64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or fileHandle is a null reference ( |
SecureSetPosition(OpcClient, OpcNodeId, SafeOpcFileHandle, long, OpcCallMethodOptions)
Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.
public static void SecureSetPosition(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
long position,
OpcCallMethodOptions options)Public Shared Sub SecureSetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
position As Long,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'SetPosition' method node is to be called. |
fileHandle | Safe | The Safe |
position | Int64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or fileHandle is a null reference ( |
SecureWrite
| Overload | Description |
|---|---|
| SecureWrite( | Writes the data to the file identified by the fileHandle specified. |
| SecureWrite( | Writes the data to the file identified by the fileHandle specified. |
| SecureWrite( | Writes the data to the file maintained by the file node referenced by the context specified. |
| SecureWrite( | Writes the data to the file maintained by the file node referenced by the context specified. |
| SecureWrite( | Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| SecureWrite( | Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| OpcException | The call of the method node failed ( |
SecureWrite(SafeOpcFileHandle, byte[])
Writes the data to the file identified by the fileHandle specified.
public static void SecureWrite(SafeOpcFileHandle fileHandle, byte[] data)Public Shared Sub SecureWrite(fileHandle As SafeOpcFileHandle, data As Byte())Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
data | Byte[] | The data to write to the file at the current position. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle is a null reference ( |
| Not | The '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)
Writes the data to the file identified by the fileHandle specified.
public static void SecureWrite(
SafeOpcFileHandle fileHandle,
byte[] data,
OpcCallMethodOptions options)Public Shared Sub SecureWrite(
fileHandle As SafeOpcFileHandle,
data As Byte(),
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
fileHandle | Safe | The Safe |
data | Byte[] | The data to write to the file at the current position. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The fileHandle or data is a null reference ( |
| Not |
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[])
Writes the data to the file maintained by the file node referenced by the context specified.
public static void SecureWrite(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
byte[] data)Public Shared Sub SecureWrite(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
data As Byte())Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
data | Byte[] | The data to write to the file at the current position. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context, fileHandle or data is a null reference ( |
| Not | The '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)
Writes the data to the file maintained by the file node referenced by the context specified.
public static void SecureWrite(
OpcFileNodeContext context,
SafeOpcFileHandle fileHandle,
byte[] data,
OpcCallMethodOptions options)Public Shared Sub SecureWrite(
context As OpcFileNodeContext,
fileHandle As SafeOpcFileHandle,
data As Byte(),
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | Safe | The Safe |
data | Byte[] | The data to write to the file at the current position. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context, fileHandle or data is a null reference ( |
| Not | The '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[])
Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
public static void SecureWrite(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
byte[] data)Public Shared Sub SecureWrite(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
data As Byte())Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Write' method node is to be called. |
fileHandle | Safe | The Safe |
data | Byte[] | The data to write to the file at the current position. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId, fileHandle or data is a null reference ( |
| Not | The '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)
Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
public static void SecureWrite(
OpcClient client,
OpcNodeId fileNodeId,
SafeOpcFileHandle fileHandle,
byte[] data,
OpcCallMethodOptions options)Public Shared Sub SecureWrite(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As SafeOpcFileHandle,
data As Byte(),
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Write' method node is to be called. |
fileHandle | Safe | The Safe |
data | Byte[] | The data to write to the file at the current position. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId, fileHandle or data is a null reference ( |
| Not | The '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
| Overload | Description |
|---|---|
| SetPosition( | Updates the position in the file maintained by the file node referenced by the context specified using position. |
| SetPosition( | Updates the position in the file maintained by the file node referenced by the context specified using position. |
| SetPosition( | Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position. |
| SetPosition( | Updates 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)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The '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. |
| OpcException | The call of the method node failed ( |
SetPosition(OpcFileNodeContext, uint, ulong)
Updates the position in the file maintained by the file node referenced by the context specified using position.
[CLSCompliant(false)]
public static void SetPosition(
OpcFileNodeContext context,
uint fileHandle,
ulong position)<CLSCompliant(False)>
Public Shared Sub SetPosition(
context As OpcFileNodeContext,
fileHandle As UInteger,
position As ULong)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
position | UInt64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
SetPosition(OpcFileNodeContext, uint, ulong, OpcCallMethodOptions)
Updates the position in the file maintained by the file node referenced by the context specified using position.
[CLSCompliant(false)]
public static void SetPosition(
OpcFileNodeContext context,
uint fileHandle,
ulong position,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Sub SetPosition(
context As OpcFileNodeContext,
fileHandle As UInteger,
position As ULong,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
position | UInt64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
SetPosition(OpcClient, OpcNodeId, uint, ulong)
Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.
[CLSCompliant(false)]
public static void SetPosition(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
ulong position)<CLSCompliant(False)>
Public Shared Sub SetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
position As ULong)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'SetPosition' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
position | UInt64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
SetPosition(OpcClient, OpcNodeId, uint, ulong, OpcCallMethodOptions)
Updates the position in the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient using position.
[CLSCompliant(false)]
public static void SetPosition(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
ulong position,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Sub SetPosition(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
position As ULong,
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'SetPosition' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
position | UInt64 | The new position in the file. If position is greater than the file size the position is set to the end of the file. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client or fileNodeId is a null reference ( |
Write
| Overload | Description |
|---|---|
| Write( | Writes the data to the file maintained by the file node referenced by the context specified. |
| Write( | Writes the data to the file maintained by the file node referenced by the context specified. |
| Write( | Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
| Write( | Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient. |
Exceptions (all overloads)
| Exception | Condition |
|---|---|
| Invalid | The file node does not exist. |
| Not | The 'Write' method node does not exist or the method node signature does not define a valid method node to write data to a file. |
| OpcException | The call of the method node failed ( |
Write(OpcFileNodeContext, uint, byte[])
Writes the data to the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static void Write(
OpcFileNodeContext context,
uint fileHandle,
byte[] data)<CLSCompliant(False)>
Public Shared Sub Write(
context As OpcFileNodeContext,
fileHandle As UInteger,
data As Byte())Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
data | Byte[] | The data to write to the file at the current position. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
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)
Writes the data to the file maintained by the file node referenced by the context specified.
[CLSCompliant(false)]
public static void Write(
OpcFileNodeContext context,
uint fileHandle,
byte[] data,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Sub Write(
context As OpcFileNodeContext,
fileHandle As UInteger,
data As Byte(),
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
context | Opc | The Opc |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
data | Byte[] | The data to write to the file at the current position. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The context is a null reference ( |
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[])
Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static void Write(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
byte[] data)<CLSCompliant(False)>
Public Shared Sub Write(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
data As Byte())Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Write' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
data | Byte[] | The data to write to the file at the current position. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or data is a null reference ( |
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)
Writes the data to the file maintained by the file node referenced by the fileNodeId specified using the further specified OpcClient.
[CLSCompliant(false)]
public static void Write(
OpcClient client,
OpcNodeId fileNodeId,
uint fileHandle,
byte[] data,
OpcCallMethodOptions options)<CLSCompliant(False)>
Public Shared Sub Write(
client As OpcClient,
fileNodeId As OpcNodeId,
fileHandle As UInteger,
data As Byte(),
options As OpcCallMethodOptions)Parameters
| Name | Type | Description |
|---|---|---|
client | OpcClient | The OpcClient to use to call the method. |
fileNodeId | OpcNodeId | The OpcNodeId of the file node its 'Write' method node is to be called. |
fileHandle | UInt32 | The numeric file handle acquired by one of the Open methods. |
data | Byte[] | The data to write to the file at the current position. |
options | Opc | The Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The client, fileNodeId or data is a null reference ( |
Remarks
It is server-dependent whether the written data is persistently stored if the session is ended without calling the Close method.

