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



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Security.Subject Namespace > IdentityContext Class > IdentityContext Constructor : IdentityContext Constructor(IUserIdentity,IApplicationIdentity,CommunicationSecurityRanking)
The user identity.

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

The application identity.

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

The communication security ranking.
Initializes a new instance of the IdentityContext class with the specified user identity, application identity, and communication security ranking.
Syntax
'Declaration
 
Public Function New( _
   ByVal userIdentity As IUserIdentity, _
   ByVal applicationIdentity As IApplicationIdentity, _
   ByVal communicationSecurityRanking As CommunicationSecurityRanking _
)
'Usage
 
Dim userIdentity As IUserIdentity
Dim applicationIdentity As IApplicationIdentity
Dim communicationSecurityRanking As CommunicationSecurityRanking
 
Dim instance As New IdentityContext(userIdentity, applicationIdentity, communicationSecurityRanking)

Parameters

userIdentity
The user identity.

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

applicationIdentity
The application identity.

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

communicationSecurityRanking
The communication security ranking.
Remarks

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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