Skip to content

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 ​

protected

Initializes a new instance of the OpcImpersonationContext class.

csharp
protected OpcImpersonationContext()
vbnet
Protected Sub New()

Methods ​

Dispose ​

2 overloads

OverloadDescription
Dispose()Releases all resources used by the OpcImpersonationContext.
Dispose(bool)protected · virtualReleases the unmanaged resources used by the OpcImpersonationContext and optionally releases the managed resources.

Dispose() ​

Releases all resources used by the OpcImpersonationContext.

csharp
public void Dispose()
vbnet
Public Sub Dispose()

Implements

Dispose()

Remarks

The method does not undo the impersonation; call Undo to undo it.

Dispose(bool) ​

protected · virtual

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

NameTypeDescription
disposingBooleanThe value true to release both managed and unmanaged resources; otherwise the value false to release only unmanaged resources.

Undo ​

abstract

Undoes the impersonation.

csharp
public abstract void Undo()
vbnet
Public MustOverride Sub Undo()