Share via


JsonWebTokenUtilities.IsExpired Method

Namespace:  Microsoft.VisualStudio.Services.WebApi.Jwt
Assembly:  Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function IsExpired ( _
    token As JsonWebToken _
) As Boolean
public static bool IsExpired(
    this JsonWebToken token
)
[ExtensionAttribute]
public:
static bool IsExpired(
    JsonWebToken^ token
)
static member IsExpired : 
        token:JsonWebToken -> bool
public static function IsExpired(
    token : JsonWebToken
) : boolean

Parameters

Return Value

Type: System.Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type JsonWebToken. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

JsonWebTokenUtilities Class

Microsoft.VisualStudio.Services.WebApi.Jwt Namespace