ArcGIS Runtime SDK for WPF - Library Reference
GetCredentialTaskAsync(String,Boolean,GenerateTokenOptions) Method
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager Class > GetCredentialTaskAsync Method : GetCredentialTaskAsync(String,Boolean,GenerateTokenOptions) Method

url
The url for the secure resource.
retry
Indicates if the method should make additional attempts to get the credentials after a failure (i.e. if true, the user will be challenged in any case)
generateTokenOptions
The optional infos concerning the credential to generate (referer, proxyURL).
Returns a Credential object that can be used to access the secured resource identified by the input url. If required the user will be challenged for a username and password which is used to generate a token. The IdentityManager sets up a timer to update the Credential object with a new token prior to the expiration time. This method is typically called internally when a request fails due to an "invalid credentials" error.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetCredentialTaskAsync( _
   ByVal url As String, _
   ByVal retry As Boolean, _
   Optional ByVal generateTokenOptions As IdentityManager.GenerateTokenOptions _
) As Task(Of IdentityManager.Credential)

Parameters

url
The url for the secure resource.
retry
Indicates if the method should make additional attempts to get the credentials after a failure (i.e. if true, the user will be challenged in any case)
generateTokenOptions
The optional infos concerning the credential to generate (referer, proxyURL).

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.