# IOpcApplication Members

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

<dl class="api-definition">
<dt>Type</dt>
<dd><a href="./">IOpcApplication</a></dd>
<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>Also in</dt>
<dd>Opc.UaFx.Client</dd>
</dl>

## Properties

### Configuration

Gets the configuration of the application.

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

```csharp
OpcApplicationConfiguration Configuration { get; }
```

</div>

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

```vbnet
ReadOnly Property Configuration As OpcApplicationConfiguration
```

</div>

**Property value**

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

The [OpcApplicationConfiguration](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcapplicationconfiguration/) of the application.

### ProductCompany

Gets the name of the company of the product the application belongs to.

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

```csharp
string ProductCompany { get; }
```

</div>

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

```vbnet
ReadOnly Property ProductCompany As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The name of the company.

### ProductName

Gets the name of the product the application belongs to.

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

```csharp
string ProductName { get; }
```

</div>

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

```vbnet
ReadOnly Property ProductName As String
```

</div>

**Property value**

[String](https://learn.microsoft.com/dotnet/api/system.string)

The name of the product.

### ProductVersion

Gets the version of the product the application belongs to.

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

```csharp
Version ProductVersion { get; }
```

</div>

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

```vbnet
ReadOnly Property ProductVersion As Version
```

</div>

**Property value**

[Version](https://learn.microsoft.com/dotnet/api/system.version)

The version of the product.

## Methods

### Exit

Exits the application.

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

```csharp
void Exit()
```

</div>

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

```vbnet
Sub [Exit]()
```

</div>

### Run

Runs the application.

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

```csharp
void Run()
```

</div>

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

```vbnet
Sub Run()
```

</div>

## Events

### Exited

Occurs after the application has been exited.

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

```csharp
event EventHandler Exited
```

</div>

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

```vbnet
Event Exited As EventHandler
```

</div>

**Event type**

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)

### Exiting

Occurs when the application is being exited.

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

```csharp
event EventHandler Exiting
```

</div>

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

```vbnet
Event Exiting As EventHandler
```

</div>

**Event type**

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)

### Started

Occurs after the application has been started.

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

```csharp
event EventHandler Started
```

</div>

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

```vbnet
Event Started As EventHandler
```

</div>

**Event type**

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)

### Starting

Occurs when the application is being started.

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

```csharp
event EventHandler Starting
```

</div>

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

```vbnet
Event Starting As EventHandler
```

</div>

**Event type**

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)
