# OpcDefaultImpersonationContext Class

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

Represents the context of an impersonation which has not changed the user, so that there is nothing to undo.

## Syntax

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

```csharp
public class OpcDefaultImpersonationContext : OpcImpersonationContext
```

</div>

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

```vbnet
Public Class OpcDefaultImpersonationContext
    Inherits OpcImpersonationContext
```

</div>

## Inheritance

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

## Implements

<ul class="api-implements">
<li><a href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></li>
</ul>

## Methods

| Name | Description |
|---|---|
| [Undo](https://www.traeger.de/en/docs/development/opcua/api/v2.59/opc.uafx.opcdefaultimpersonationcontext/members#undo)<span class="api-meta">override</span> | Does nothing, because the context has not changed the user. |

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

## Applies to

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