Community Analyst API for Silverlight 2.2 Reference
BAOnlineTokenProvider Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAO.Tasks.Authentication Namespace : BAOnlineTokenProvider Class

Glossary Item Box

The BAOnlineTokenProvider class implements the token provider used with the Community Analyst API tasks.

Object Model

BAOnlineTokenProvider ClassAbstractTask Class

Syntax

 
Visual Basic (Declaration)
C#
 
 

Example

The code snippet below shows how to create an instance of the token provider to be used with Community Analyst tasks. A token provider can be associated with an instance of the BAOnlineClient class or with a task deriving from the ESRI.ArcGIS.Client.BAO.Tasks.BAOnlineTask<TResult> class. 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
BAOnlineTokenProvider tokenProvider = new BAOnlineTokenProvider(new UserCredentials("username", "password"));
tokenProvider.Url = "https://baoapi.esri.com";
            
BAOnlineClient client = new BAOnlineClient("http://baoapi.esri.com");
client.TokenProvider = tokenProvider;

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.TokenProvider
      ESRI.ArcGIS.Client.BAO.Tasks.Authentication.BAOnlineTokenProvider

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.