
Visual Basic (Declaration)
C#
The code snippet below shows how to create an instance of this class
with the assumption that the Business Analyst Server instance uses token-based security.
To get the example working, specify valid values for username, password and the URLs.
C# | ![]() |
---|---|
BAServerClient client = new BAServerClient("http://localhost/ArcGIS/baserver/REST/services/DefaultMap/BAServer"); // Token provider updates a security token when it expires. // Remove lines below if the token-based security is disabled. ArcGISTokenProvider tokenProvider = new ArcGISTokenProvider(new UserCredentials("username", "password")); tokenProvider.Url = "https://localhost/ArcGIS/tokens"; client.TokenProvider = tokenProvider; |
System.Object
ESRI.ArcGIS.Client.BACore.Client.AbstractClient
ESRI.ArcGIS.Client.BACore.Client.BAClient
ESRI.ArcGIS.Client.BAServer.Tasks.BAServerClient
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