# IOpcFileInfo Interface

<span class="api-meta">since v2.16</span>

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx">Opc.UaFx</a></dd>
<dt>Assembly</dt>
<dd>Opc.UaFx.Advanced.dll</dd>
<dt>Package</dt>
<dd>Opc.UaFx.Advanced v2.59.0</dd>
<dt>Members</dt>
<dd><a href="./members">IOpcFileInfo Members</a></dd>
</dl>

Represents a single file in OPC UA and provides properties and instance methods for accessing files.

## Syntax

<div class="api-signature" data-lang="csharp">

```csharp
public interface IOpcFileInfo
```

</div>

<div class="api-signature" data-lang="vbnet">

```vbnet
Public Interface IOpcFileInfo
```

</div>

## Derived types

- [OpcFileInfo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcfileinfo/)

## Properties

| Name | Description |
|---|---|
| [Exists](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcfileinfo/members#exists) | Gets a value indicating whether a file exists. |
| [IsReadOnly](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcfileinfo/members#isreadonly) | Gets or sets a value that determines if the current file is read only. |
| [Length](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcfileinfo/members#length) | Gets the size, in bytes, of the current file. |

## Methods

| Name | Description |
|---|---|
| [GetMimeType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcfileinfo/members#getmimetype) | Determines the internet media type (mime- or content-type) of the file. |
| [Open](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcfileinfo/members#open) | Opens a file in the specified mode. |
| [Refresh](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcfileinfo/members#refresh) | Refreshes the state of the object. |

## Applies to

| Package | Versions |
|---|---|
| Opc.UaFx.Advanced | v2.16–v2.59 |
