# IOpcApplication Interface

> Reference: Defines an application which runs an OPC UA client or server (see OpcApplication).

<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">IOpcApplication Members</a></dd>
<dt>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

Defines an application which runs an OPC UA client or server (see [OpcApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplication/)).

## Syntax

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

```csharp
public interface IOpcApplication
```

</div>

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

```vbnet
<CLSCompliant(False)>
Public Interface IOpcApplication
```

</div>

## Derived types

- [OpcClientApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientapplication/)
- [OpcClientApplication&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.client.opcclientapplication-1/)
- [OpcApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplication/)
- [OpcDiscoveryServerApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcdiscoveryserverapplication/)
- [OpcServerApplication](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverapplication/)
- [OpcServerApplication&lt;T&gt;](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcserverapplication-1/)

## Properties

| Name | Description |
|---|---|
| [Configuration](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#configuration) | Gets the configuration of the application. |
| [ProductCompany](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#productcompany) | Gets the name of the company of the product the application belongs to. |
| [ProductName](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#productname) | Gets the name of the product the application belongs to. |
| [ProductVersion](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#productversion) | Gets the version of the product the application belongs to. |

## Methods

| Name | Description |
|---|---|
| [Exit](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#exit) | Exits the application. |
| [Run](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#run) | Runs the application. |

## Events

| Name | Description |
|---|---|
| [Exited](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#exited) | Occurs after the application has been exited. |
| [Exiting](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#exiting) | Occurs when the application is being exited. |
| [Started](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#started) | Occurs after the application has been started. |
| [Starting](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.iopcapplication/members#starting) | Occurs when the application is being started. |

## Applies to

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