OPC Studio User's Guide and Reference
SelectTokenInfoPolicy Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IdentityModel.User Namespace > TokenSelectionPolicy Class : SelectTokenInfoPolicy Method
Token info policies available.

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

User identity.

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

Outline of the candidate selection process.

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

The token info policy.

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

Selects a security token policy.
Syntax
'Declaration
 
Public Overridable Function SelectTokenInfoPolicy( _
   ByVal tokenInfoPolicies As IEnumerable(Of TokenInfoPolicy), _
   ByVal userIdentity As UserIdentity, _
   ByRef candidateReport As String, _
   ByRef tokenInfoPolicy As TokenInfoPolicy _
) As Boolean
'Usage
 
Dim instance As TokenSelectionPolicy
Dim tokenInfoPolicies As IEnumerable(Of TokenInfoPolicy)
Dim userIdentity As UserIdentity
Dim candidateReport As String
Dim tokenInfoPolicy As TokenInfoPolicy
Dim value As Boolean
 
value = instance.SelectTokenInfoPolicy(tokenInfoPolicies, userIdentity, candidateReport, tokenInfoPolicy)

Parameters

tokenInfoPolicies
Token info policies available.

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

userIdentity
User identity.

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

candidateReport
Outline of the candidate selection process.

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

tokenInfoPolicy
The token info policy.

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

Return Value

Returns true if the functions has been successfully selected; false otherwise.
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