This document is archived and information here might be outdated.  Recommended version.


IArcGISSingleSignon.GetToken Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (SystemUI)  

IArcGISSingleSignon.GetToken Method

Signs the user in to ArcGIS Online if required, and returns the current token and matching referer.

[Visual Basic .NET]
Public Sub GetToken ( _
    ByVal hParentHWND As Integer, _
    ByRef bsToken As String, _
    ByRef bsReferer As String, _
    ByRef lExpiration As Integer, _
    ByRef bsUser As String _
)
[C#]
public void GetToken (
    int hParentHWND,
    ref string bsToken,
    ref string bsReferer,
    ref int lExpiration,
    ref string bsUser
);
[C++]
HRESULT GetToken(
  long hParentHWND,
  BSTR* bsToken,
  BSTR* bsReferer,
  long* lExpiration,
  BSTR* bsUser
);
[C++]

Parameters hParentHWND [in] hParentHWND is a parameter of type long bsToken [in, out] bsToken is a parameter of type BSTR bsReferer [in, out] bsReferer is a parameter of type BSTR lExpiration [in, out] lExpiration is a parameter of type long bsUser [in, out] bsUser is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IArcGISSingleSignon Interface