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
| Name | Type | Description |
|---|---|---|
identity | OpcIdentity | The OpcIdentity of the principal. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The identity is a null reference ( |
Properties
Identity
Gets the identity of the principal.
csharp
public OpcIdentity Identity { get; }vbnet
Public ReadOnly Property Identity As OpcIdentityProperty value
The OpcIdentity specified on construction.
Methods
IsInRole
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 BooleanParameters
| Name | Type | Description |
|---|---|---|
role | Opc | The Opc |
Returns
The value true if the current OpcPrincipal is a member of the specified role; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument |

