SPSessionSecurityTokenCookieValue.ParseExpiry method
Parses the token expiry from it's text value into a proper DateTime.
Namespace: Microsoft.SharePoint.IdentityModel
Assembly: Microsoft.SharePoint.IdentityModel (in Microsoft.SharePoint.IdentityModel.dll)
Syntax
'Declaration
Protected Overridable Function ParseExpiry ( _
expiry As String, _
options As SPSessionSecurityTokenCookieValueOption _
) As Boolean
'Usage
Dim expiry As String
Dim options As SPSessionSecurityTokenCookieValueOption
Dim returnValue As Boolean
returnValue = Me.ParseExpiry(expiry, _
options)
protected virtual bool ParseExpiry(
string expiry,
SPSessionSecurityTokenCookieValueOption options
)
Parameters
expiry
Type: System.StringThe value found in the cookie representing the expiry date.
Return value
Type: System.Boolean
True if the value can be parsed, false otherwise.
See also
Reference
SPSessionSecurityTokenCookieValue class