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 OpcFileInfovbnet
Public NotInheritable Class OpcFileInfoInheritance
Object → OpcFileInfo
Constructors
| Name | Description |
|---|---|
| OpcFileInfo | Initializes a new instance of the OpcFileInfo class, which acts as a wrapper for the file node identified by the context specified. |
Properties
| Name | Description |
|---|---|
| CanUserWrite | Gets a value indicating whether the file is writable taking user access rights into account. |
| CanWrite | Gets a value indicating whether the file is writable. |
| Context | Gets the Opc |
| Exists | Gets a value indicating whether the file node represented exists. |
| Length | Gets the size, in bytes, of the current file represented by the file node described. |
| MimeType | Gets the media type of the current file represented by the file node described. |
| Name | Gets the name of the file node described. |
Methods
| Name | Description |
|---|---|
| AppendText | Creates a StreamWriter that appends text to the file represented by this instance of the OpcFileInfo. |
| Open | Opens a file in the specified mode. |
| OpenRead | Creates a read-only OpcFileStream. |
| OpenText | Creates a StreamReader with UTF8 encoding. |
| OpenWrite | Creates a write-only OpcFileStream. |
| Refresh | Refreshes the state and information of the OpcFileInfo object. |
| ToString | Returns the OpcNodeId or the Value of the file node described. |
Applies to
| Package | Versions |
|---|---|
| Opc. | v2. |

