# OpcOperationContext Class

<dl class="api-definition">
<dt>Namespace</dt>
<dd><a href="../namespaces/opc.uafx.server">Opc.UaFx.Server</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">OpcOperationContext Members</a></dd>
</dl>

Represents the context of an operation the server performs on behalf of a request of a client.

## Syntax

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

```csharp
public class OpcOperationContext : OpcContext
```

</div>

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

```vbnet
Public Class OpcOperationContext
    Inherits OpcContext
```

</div>

## Inheritance

[Object](https://learn.microsoft.com/dotnet/api/system.object) → [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/) → **OpcOperationContext**

## Implements

<ul class="api-implements">
<li><a href="../opc.uafx.iopcnamespaceresolver/">IOpcNamespaceResolver</a></li>
</ul>

## Properties

| Name | Description |
|---|---|
| [ClientID](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#clientid) | Gets the handle the client has assigned to the request. |
| [Endpoint](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#endpoint) | Gets the endpoint through which the request has been received. |
| [OperationDeadline](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#operationdeadline) | Gets the time by which the operation is to be completed. |
| [OperationStatus](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#operationstatus) | Gets the status of the operation. |
| [PreferredLocales](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#preferredlocales)<span class="api-meta">override</span> | Gets a collection of preferred locales (see [Name](https://learn.microsoft.com/dotnet/api/system.globalization.cultureinfo.name)) to use to localize data and information. |
| [RequestId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#requestid)<span class="api-meta">since v2.7</span> | Gets the identifier the server has assigned to the request. |
| [RequestType](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#requesttype)<span class="api-meta">since v2.7</span> | Gets the type of the request. |
| [Session](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#session) | Gets the session in which the request has been received. |
| [SessionId](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#sessionid)<span class="api-meta">override · since v2.7</span> | Gets the identifier of the session in which the request has been received. |
| [Socket](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.server.opcoperationcontext/members#socket)<span class="api-meta">since v2.7</span> | Gets the local and remote endpoints of the connection through which the request has been received. |

Inherits members from [OpcContext](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opccontext/members).

## Applies to

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