Esri Business Analyst Server API for Silverlight 2.2 Reference
ArcGISTokenProvider Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BACore.Tasks Namespace : ArcGISTokenProvider Class

Glossary Item Box

The ArcGISTokenProvider class implements the token provider used with BAQueryTask task.

Object Model

ArcGISTokenProvider ClassAbstractTask Class

Syntax

 
Visual Basic (Declaration)
C#
 
 

Example

The code snippet below shows how to create an instance of the token provider. Different tasks can share the same token provider object.

To get the example working, specify valid values for username, password and the URLs.

C#Copy Code
ArcGISTokenProvider tokenProvider = new ArcGISTokenProvider(new UserCredentials("username", "password"));
tokenProvider.Url = "https://localhost/ArcGIS/tokens";
            
BAQueryTask task = new BAQueryTask();
task.TokenProvider = tokenProvider;

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.TokenProvider
      ESRI.ArcGIS.Client.BACore.Tasks.ArcGISTokenProvider

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 Esri, Inc. All Rights Reserved.