DiscoveryService.CheckIfTokenIsExpired Method (SecurityTokenResponse, Nullable<TimeSpan>)

 

Applies To: Dynamics CRM 2015

Checks to see if the token has expired.

Namespace:   Microsoft.Xrm.Client.Services
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

protected bool CheckIfTokenIsExpired(
    SecurityTokenResponse token,
    Nullable<TimeSpan> expiryWindow
)
protected:
bool CheckIfTokenIsExpired(
    SecurityTokenResponse^ token,
    Nullable<TimeSpan> expiryWindow
)
member CheckIfTokenIsExpired : 
        token:SecurityTokenResponse *
        expiryWindow:Nullable<TimeSpan> -> bool
Protected Function CheckIfTokenIsExpired (
    token As SecurityTokenResponse,
    expiryWindow As Nullable(Of TimeSpan)
) As Boolean

Parameters

Return Value

Type: System.Boolean

Type: Boolean
true if the token has expired; otherwise false.

See Also

DiscoveryService Class
Microsoft.Xrm.Client.Services Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright