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


IArcGISSingleSignon.GetToken Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IA > IArcGISSingleSignon Interface > IArcGISSingleSignon.GetToken Method
ArcGIS Developer Help

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,
  System.String* bsToken,
  System.String* bsReferer,
  System.Int32* lExpiration,
  System.String* 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