Skip to content

Reference

OpcFileInfo Class

Provides properties and instance methods for the opening of files and aids in the creation of OpcFileStream objects.

Reference

OpcFileInfo Class ​

Namespace
Opc.UaFx.Client
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcFileInfo Members
Also in
Opc.UaFx.Client

Provides properties and instance methods for the opening of files and aids in the creation of OpcFileStream objects.

Syntax ​

csharp
public sealed class OpcFileInfo
vbnet
Public NotInheritable Class OpcFileInfo

Inheritance ​

Object → OpcFileInfo

Constructors ​

NameDescription
OpcFileInfo2 overloadsInitializes a new instance of the OpcFileInfo class, which acts as a wrapper for the file node identified by the context specified.

Properties ​

NameDescription
CanUserWriteGets a value indicating whether the file is writable taking user access rights into account.
CanWriteGets a value indicating whether the file is writable.
ContextGets the OpcFileNodeContext used to wrap and access the file node its information is to be provided by the OpcFileInfo.
ExistsGets a value indicating whether the file node represented exists.
LengthGets the size, in bytes, of the current file represented by the file node described.
MimeTypeGets the media type of the current file represented by the file node described.
NameGets the name of the file node described.

Methods ​

NameDescription
AppendTextCreates a StreamWriter that appends text to the file represented by this instance of the OpcFileInfo.
OpenOpens a file in the specified mode.
OpenReadCreates a read-only OpcFileStream.
OpenTextCreates a StreamReader with UTF8 encoding.
OpenWriteCreates a write-only OpcFileStream.
RefreshRefreshes the state and information of the OpcFileInfo object.
ToStringoverrideReturns the OpcNodeId or the Value of the file node described.

Applies to ​

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