1
我使用下面的方法登錄到ArcGIS門戶網站,並獲得爲gettoken方法的令牌獲得令牌的到期時間從ArcGIS Online的
public static IArcGISSingleSignon SingleSignon
{
get
{
if (_singleSignon == null)
_singleSignon = new ESRI.ArcGIS.SystemUI.ArcGISSingleSignonClass();
return _singleSignon;
}
}
internal static void SignIn()
{
string bsToken = string.Empty, bsReferrer = string.Empty, bsUser = string.Empty;
int IExpiration = 0;
try
{
SingleSignon.GetToken(0, ref bsToken, ref bsReferrer, ref IExpiration, ref bsUser);
}
catch (System.Runtime.InteropServices.COMException)
{ }
}
文件說,這對IExpiration
lExpiration is a parameter of type long
所以當我的令牌即將到期時,如何從這個長期價值中知道?