Connectivity Software User's Guide and Reference
HandleAndReturn(UserVerificationOutcome,IUserIdentity) Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Security.OperationModel Namespace > VerifyUserEventArgs Class > HandleAndReturn Method : HandleAndReturn(UserVerificationOutcome,IUserIdentity) Method
The outcome of the user verification.
The verified user identity, if available.

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

Sets the verification outcome and user identity, and marks the event as handled.
Syntax
'Declaration
 
Public Overloads Sub HandleAndReturn( _
   ByVal userVerificationOutcome As UserVerificationOutcome, _
   ByVal userIdentity As IUserIdentity _
) 
'Usage
 
Dim instance As VerifyUserEventArgs
Dim userVerificationOutcome As UserVerificationOutcome
Dim userIdentity As IUserIdentity
 
instance.HandleAndReturn(userVerificationOutcome, userIdentity)

Parameters

userVerificationOutcome
The outcome of the user verification.
userIdentity
The verified user identity, if available.

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

Exceptions
ExceptionDescription

An invalid enumeration value was used.

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