Skip to content

Reference

OpcFileNode Class

Defines a file node.

Reference

OpcFileNode Class ​

Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcFileNode Members

Defines a file node.

Syntax ​

csharp
[OpcNodeType(11575)]
public class OpcFileNode : OpcObjectNode
vbnet
<OpcNodeType(11575)>
Public Class OpcFileNode
    Inherits OpcObjectNode

Inheritance ​

Object → OpcNode → OpcInstanceNode → OpcObjectNode → OpcFileNode

Implements ​

Remarks ​

The file node uses the type definition FileType.

Constructors ​

NameDescription
OpcFileNode18 overloadsInitializes a new instance of the OpcFileNode class using the content as the instance to wrap.

Properties ​

NameDescription
CanUserWriteGets or sets a value indicating whether by default a user can access the file represented for writing taking user access rights into account.
CanUserWriteNodeGets the OpcPropertyNode<T> of the CanUserWrite property.
CanWriteGets or sets a value indicating whether the file is writable.
CanWriteNodeGets the OpcPropertyNode<T> of the CanWrite property.
CloseNodeGets the OpcFileCloseMethodNode used to handle 'Close' method calls to close the file represented.
DefaultTypeDefinitionIdprotected · overrideGets the default identifier which identifies the node that defines the underlying node type from that this OpcInstanceNode has been created.
Filesince v2.16Gets the IOpcFileInfo used to access the file represented.
FileInfoGets the FileInfo of the file represented.
GetPositionNodeGets the OpcFileGetPositionMethodNode used to handle 'GetPosition' method calls to query the position in the file represented.
MimeTypeGets the media type of the file.
MimeTypeNodeGets the OpcPropertyNode<T> of the MimeType property.
OpenCountGets the number of currently valid file handles on the file.
OpenCountNodeGets the OpcPropertyNode<T> of the OpenCount property.
OpenNodeGets the OpcFileOpenMethodNode used to handle 'Open' method calls to open the file represented.
ReadNodeGets the OpcFileReadMethodNode used to handle 'Read' method calls to read data from the file represented.
SetPositionNodeGets the OpcFileSetPositionMethodNode used to handle 'SetPosition' method calls to update the position in the file represented.
SizeGets the size of the file in bytes.
SizeNodeGets the OpcPropertyNode<T> of the Size property.
WriteNodeGets the OpcFileWriteMethodNode used to handle 'Write' method calls to write data to the file represented.

Methods ​

NameDescription
Closesince v2.33Closes the file represented.
GetPositionsince v2.33GetPosition is used to provide the current position of the file handle.
InitializeDefaultsprotected · overrideInitializes the default values used by the OpcFileNode.
Opensince v2.33Opens the file represented.
Readsince v2.33Read is used to read a part of the file starting from the current file position.
ReadCanUserWriteprotected · virtualReads the value of the CanUserWrite property.
ReadCanWriteprotected · virtualReads the value of the CanWrite property.
SetPositionsince v2.33SetPosition is used to set the current position of the file handle.
Writesince v2.33Write is used to write a part of the file starting from the current file position.

Inherits members from OpcObjectNode, OpcInstanceNode, OpcNode.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59