Skip to content

Reference

OpcPrincipal Members

Represents a user of the server by its OpcIdentity, to which the entries of the access control lists and the access control roles apply.

Reference

OpcPrincipal Members ​

Type
OpcPrincipal
Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Constructors ​

OpcPrincipal ​

Initializes a new instance of the OpcPrincipal class using the identity specified.

csharp
public OpcPrincipal(OpcIdentity identity)
vbnet
Public Sub New(identity As OpcIdentity)

Parameters

NameTypeDescription
identityOpcIdentityThe OpcIdentity of the principal.

Exceptions

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

Properties ​

Identity ​

Gets the identity of the principal.

csharp
public OpcIdentity Identity { get; }
vbnet
Public ReadOnly Property Identity As OpcIdentity

Property value

OpcIdentity

The OpcIdentity specified on construction.

Methods ​

IsInRole ​

virtual · since v2.53

Determines whether the current OpcPrincipal is a member of the specified role.

csharp
public virtual bool IsInRole(OpcAccessControlRole role)
vbnet
Public Overridable Function IsInRole(role As OpcAccessControlRole) As Boolean

Parameters

NameTypeDescription
roleOpcAccessControlRoleThe OpcAccessControlRole for which to check the membership.

Returns

Boolean

The value true if the current OpcPrincipal is a member of the specified role; otherwise the value false.

Exceptions

ExceptionCondition
ArgumentNullException