Reference
IOpcFileInfo Members
Represents a single file in OPC UA and provides properties and instance methods for accessing files.
Reference
IOpcFileInfo Members
- Type
- IOpcFileInfo
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
Properties
Exists
Gets a value indicating whether a file exists.
bool Exists { get; }ReadOnly Property Exists As BooleanProperty value
The value true if the file exists; false if the file does not exist.
IsReadOnly
Gets or sets a value that determines if the current file is read only.
bool IsReadOnly { get; }ReadOnly Property IsReadOnly As BooleanProperty value
The value true if the current file is read only; otherwise the value false.
Length
Gets the size, in bytes, of the current file.
long Length { get; }ReadOnly Property Length As LongProperty value
The size of the current file in bytes.
Methods
GetMimeType
Determines the internet media type (mime- or content-type) of the file.
string GetMimeType()Function GetMimeType() As StringReturns
The type name according to the specification of multipurpose internet mail extensions (MIME) of the file represented.
Open
Opens a file in the specified mode.
Stream Open(OpcFileMode mode)Function Open(mode As OpcFileMode) As StreamParameters
| Name | Type | Description |
|---|---|---|
mode | OpcFileMode | A OpcFileMode value specifying the mode in which to open the file. |
Returns
A file opened in the specified mode.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The file mode specified is invalid. |
Refresh
Refreshes the state of the object.
void Refresh()Sub Refresh()Exceptions
| Exception | Condition |
|---|---|
| IOException | A device such as a disk drive is not ready. |

