
Visual Basic (Declaration)
C#
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# | ![]() |
---|---|
ArcGISTokenProvider tokenProvider = new ArcGISTokenProvider(new UserCredentials("username", "password")); tokenProvider.Url = "https://localhost/ArcGIS/tokens"; BAQueryTask task = new BAQueryTask(); task.TokenProvider = tokenProvider; |
System.Object
ESRI.ArcGIS.Client.BACore.Client.TokenProvider
ESRI.ArcGIS.Client.BACore.Tasks.ArcGISTokenProvider
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