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



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

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

Initializes a new instance of the IdentityContext class with the specified user identity.
Syntax
'Declaration
 
Public Function New( _
   ByVal userIdentity As IUserIdentity _
)
'Usage
 
Dim userIdentity As IUserIdentity
 
Dim instance As New IdentityContext(userIdentity)
public IdentityContext( 
   IUserIdentity userIdentity
)
public:
IdentityContext( 
   IUserIdentity^ userIdentity
)

Parameters

userIdentity
The user identity.

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

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