Skip to content

Reference

OpcAccessControlRole Members

Represents a single access control role OpcPrincipal instances can be a member of.

Reference

OpcAccessControlRole Members ​

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

Constructors ​

OpcAccessControlRole ​

Initializes a new instance of the OpcAccessControlRole class using the identifier and name specified.

csharp
public OpcAccessControlRole(OpcNodeId identifier, string name)
vbnet
Public Sub New(identifier As OpcNodeId, name As String)

Parameters

NameTypeDescription
identifierOpcNodeIdThe OpcNodeId which identifies the new OpcAccessControlRole.
nameStringThe name of the new OpcAccessControlRole.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe identifier or name is a null reference (Nothing in Visual Basic).

Properties ​

Identifier ​

Gets the identifier of the current OpcAccessControlRole.

csharp
public OpcNodeId Identifier { get; }
vbnet
Public ReadOnly Property Identifier As OpcNodeId

Property value

OpcNodeId

An instance of the OpcNodeId class.

Name ​

Gets the name of the current OpcAccessControlRole.

csharp
public string Name { get; }
vbnet
Public ReadOnly Property Name As String

Property value

String

A string value.

Methods ​

Assign ​

Assigns the principal specified to the current OpcAccessControlRole.

csharp
public void Assign(OpcPrincipal principal)
vbnet
Public Sub Assign(principal As OpcPrincipal)

Parameters

NameTypeDescription
principalOpcPrincipalAn instance of the OpcPrincipal which is to be assigned to this role.

Exceptions

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

Contains ​

Determines whether the principal is a member of the current OpcAccessControlRole.

csharp
public bool Contains(OpcPrincipal principal)
vbnet
Public Function Contains(principal As OpcPrincipal) As Boolean

Parameters

NameTypeDescription
principalOpcPrincipalAn instance of the OpcPrincipal which its membership is to be verified.

Returns

Boolean

The value true if the principal is a member of the current OpcAccessControlRole; otherwise the value false.

Exceptions

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

Revoke ​

Revokes the assignment of the current OpcAccessControlRole to the principal specified.

csharp
public void Revoke(OpcPrincipal principal)
vbnet
Public Sub Revoke(principal As OpcPrincipal)

Parameters

NameTypeDescription
principalOpcPrincipalAn instance of the OpcPrincipal its assignment is to be revoked.

Exceptions

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