ArcGIS Runtime SDK for WPF - Library Reference
ChallengeMethod Property
See Also 
ESRI.ArcGIS.Client Namespace > IdentityManager Class : ChallengeMethod Property

Gets or sets the method that will challenge the user in order to get a valid credential object. To activate the IdentityManager, you have to set a challenge method. To deactivate the IdentityManager, you have to set a null challenge method (in this case, the stack of waiting credentials is reset).

Syntax

Visual Basic (Declaration) 
Public Property ChallengeMethod As IdentityManager.ChallengeDelegate
C# 
public IdentityManager.ChallengeDelegate ChallengeMethod {get; set;}

Remarks

The IdentityManager can be activated with a fixed username/password by initializing the ChallengeMethod with GenerateCredentialAsync:
            ESRI.ArcGIS.Client.IdentityManager identityManager = ESRI.ArcGIS.Client.IdentityManager.Current;
            identityManager.ChallengeMethod = (url, callback, options) => identityManager.GenerateCredentialAsync(url, "<username>", "<password>", callback, options);
            
            Dim identityManager As ESRI.ArcGIS.Client.IdentityManager = ESRI.ArcGIS.Client.IdentityManager.Current
            identityManager.ChallengeMethod = Function(url, callback, options) identityManager.GenerateCredentialAsync(url, "<username>", "<password>", callback, options)
            

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.