ArcGIS API for Silverlight - Library Reference
GenerateCredentialAsync Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > IdentityManager Class : GenerateCredentialAsync Method

url
The URL.
userName
The user name.
password
The password.
callback
The method called when the process getting a credential object is complete.
generateTokenOptions
The optional infos concerning the token to generate (referer, proxyURL).
Generates a token credential object asynchronously. You need to provide the service URL, the username and the password. This is a helper method typically called by the UI challenging the user.

Syntax

Visual Basic (Declaration) 
Public Sub GenerateCredentialAsync( _
   ByVal url As String, _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal callback As Action(Of IdentityManager.Credential,Exception), _
   Optional ByVal generateTokenOptions As IdentityManager.GenerateTokenOptions _
) 

Parameters

url
The URL.
userName
The user name.
password
The password.
callback
The method called when the process getting a credential object is complete.
generateTokenOptions
The optional infos concerning the token to generate (referer, proxyURL).

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.