Delen via


IsAuthenticated Method (Int32)

Use this method to determine whether the current user has a valid MSCSAuth ticket, authenticated within a specified period of time.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Function IsAuthenticated ( _
    timeWindow As Integer _
) As Boolean
'Usage
Dim instance As AuthManager
Dim timeWindow As Integer
Dim returnValue As Boolean

returnValue = instance.IsAuthenticated(timeWindow)
public bool IsAuthenticated(
    int timeWindow
)
public:
bool IsAuthenticated(
    int timeWindow
)
public function IsAuthenticated(
    timeWindow : int
) : boolean

Parameters

Return Value

Type: System..::.Boolean
true to indicate the user is authenticated; otherwise false.

Exceptions

Exception Condition
CommerceAuthenticationException

The user could not be authenticated.

Remarks

Gets a value indicating whether the user has been authenticated, within the specified time window, by Microsoft Commerce Server.

Permissions

See Also

Reference

AuthManager Class

AuthManager Members

IsAuthenticated Overload

Microsoft.CommerceServer.Runtime Namespace