Connectivity Software User's Guide and Reference
UAIdentityContext Constructor(IUserIdentity,IApplicationIdentity,CommunicationSecurityRanking,String,String)



OpcLabs.EasyOpcUAPrimitives Assembly > OpcLabs.EasyOpc.UA.Security.Subject Namespace > UAIdentityContext Class > UAIdentityContext Constructor : UAIdentityContext Constructor(IUserIdentity,IApplicationIdentity,CommunicationSecurityRanking,String,String)
The user identity associated with the operation.

The value of this parameter can be null (Nothing in Visual Basic).

The application identity associated with the operation.

The value of this parameter can be null (Nothing in Visual Basic).

The communication security ranking of the operation.
The URL string of the OPC UA endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

The name of the OPC UA session.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the UAIdentityContext class with the specified identity and session information.
Syntax
'Declaration
 
Public Function New( _
   ByVal userIdentity As IUserIdentity, _
   ByVal applicationIdentity As IApplicationIdentity, _
   ByVal communicationSecurityRanking As CommunicationSecurityRanking, _
   ByVal endpointUrlString As String, _
   ByVal sessionName As String _
)
'Usage
 
Dim userIdentity As IUserIdentity
Dim applicationIdentity As IApplicationIdentity
Dim communicationSecurityRanking As CommunicationSecurityRanking
Dim endpointUrlString As String
Dim sessionName As String
 
Dim instance As New UAIdentityContext(userIdentity, applicationIdentity, communicationSecurityRanking, endpointUrlString, sessionName)

Parameters

userIdentity
The user identity associated with the operation.

The value of this parameter can be null (Nothing in Visual Basic).

applicationIdentity
The application identity associated with the operation.

The value of this parameter can be null (Nothing in Visual Basic).

communicationSecurityRanking
The communication security ranking of the operation.
endpointUrlString
The URL string of the OPC UA endpoint.

The value of this parameter cannot be null (Nothing in Visual Basic).

sessionName
The name of the OPC UA session.

The value of this parameter cannot be null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also