Determines whether there is a cached security token for the specified context.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public static bool HasCachedToken(
	HostEndpoint endpoint,
	AuthProviderContext providerContext,
	string userName
)
Visual Basic
Public Shared Function HasCachedToken ( _
	endpoint As HostEndpoint, _
	providerContext As AuthProviderContext, _
	userName As String _
) As Boolean

Parameters

endpoint
Type: ININ.IceLib.Connection..::..HostEndpoint
The endpoint.
providerContext
Type: ININ.IceLib.Connection..::..AuthProviderContext
The authentication provider context.
userName
Type: System..::..String
The user name.

Return Value

trueTruetruetrue (True in Visual Basic) if has a cached token for the specified context; otherwise, falseFalsefalsefalse (False in Visual Basic).

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionA parameter is nullNothingnullptra null reference (Nothing in Visual Basic).

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 SU 5 and beyond.

See Also