Reference
OpcImpersonationContext Members
Represents the context of an impersonation started by Impersonate, which undoes the impersonation.
Reference
OpcImpersonationContext Members
- Type
- OpcImpersonationContext
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Constructors
OpcImpersonationContext
Initializes a new instance of the OpcImpersonationContext class.
csharp
protected OpcImpersonationContext()vbnet
Protected Sub New()Methods
Dispose
| Overload | Description |
|---|---|
| Dispose() | Releases all resources used by the Opc |
| Dispose( | Releases the unmanaged resources used by the Opc |
Dispose()
Releases all resources used by the OpcImpersonationContext.
csharp
public void Dispose()vbnet
Public Sub Dispose()Implements
Remarks
The method does not undo the impersonation; call Undo to undo it.
Dispose(bool)
Releases the unmanaged resources used by the OpcImpersonationContext and optionally releases the managed resources.
csharp
protected virtual void Dispose(bool disposing)vbnet
Protected Overridable Sub Dispose(disposing As Boolean)Parameters
| Name | Type | Description |
|---|---|---|
disposing | Boolean | The value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources. |
Undo
Undoes the impersonation.
csharp
public abstract void Undo()vbnet
Public MustOverride Sub Undo()
