Skip to content

Reference

OpcIdentity Members

Represents the identity of a user, which is described by a token.

Reference

OpcIdentity Members ​

Type
OpcIdentity
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Constructors ​

OpcIdentity ​

protected

Initializes a new instance of the OpcIdentity class using the token specified.

csharp
protected OpcIdentity(object token)
vbnet
Protected Sub New(token As Object)

Parameters

NameTypeDescription
tokenObjectThe token which describes the identity.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe token is a null reference (Nothing in Visual Basic).

Properties ​

DisplayName ​

abstract

Gets the name of the identity to display.

csharp
public abstract string DisplayName { get; }
vbnet
Public MustOverride ReadOnly Property DisplayName As String

Property value

String

The display name of the identity.

Token ​

Gets the token which describes the identity.

csharp
public object Token { get; }
vbnet
Public ReadOnly Property Token As Object

Property value

Object

The token passed to the constructor.

Methods ​

Impersonate ​

abstract

Impersonates the user represented by the identity.

csharp
public abstract OpcImpersonationContext Impersonate()
vbnet
Public MustOverride Function Impersonate() As OpcImpersonationContext

Returns

OpcImpersonationContext

The OpcImpersonationContext which undoes the impersonation.