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.
public OpcAccessControlRole(OpcNodeId identifier, string name)Public Sub New(identifier As OpcNodeId, name As String)Parameters
| Name | Type | Description |
|---|---|---|
identifier | OpcNodeId | The OpcNodeId which identifies the new Opc |
name | String | The name of the new Opc |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The identifier or name is a null reference ( |
Properties
Identifier
Gets the identifier of the current OpcAccessControlRole.
public OpcNodeId Identifier { get; }Public ReadOnly Property Identifier As OpcNodeIdProperty value
An instance of the OpcNodeId class.
Name
Gets the name of the current OpcAccessControlRole.
public string Name { get; }Public ReadOnly Property Name As StringProperty value
A string value.
Methods
Assign
Assigns the principal specified to the current OpcAccessControlRole.
public void Assign(OpcPrincipal principal)Public Sub Assign(principal As OpcPrincipal)Parameters
| Name | Type | Description |
|---|---|---|
principal | OpcPrincipal | An instance of the OpcPrincipal which is to be assigned to this role. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The principal is a null reference ( |
Contains
Determines whether the principal is a member of the current OpcAccessControlRole.
public bool Contains(OpcPrincipal principal)Public Function Contains(principal As OpcPrincipal) As BooleanParameters
| Name | Type | Description |
|---|---|---|
principal | OpcPrincipal | An instance of the OpcPrincipal which its membership is to be verified. |
Returns
The value true if the principal is a member of the current OpcAccessControlRole; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The principal is a null reference ( |
Revoke
Revokes the assignment of the current OpcAccessControlRole to the principal specified.
public void Revoke(OpcPrincipal principal)Public Sub Revoke(principal As OpcPrincipal)Parameters
| Name | Type | Description |
|---|---|---|
principal | OpcPrincipal | An instance of the OpcPrincipal its assignment is to be revoked. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The principal is a null reference ( |

