ArcGIS API for WPF - Library Reference
Token Property
See Also  Example Send comments on this topic
ESRI.ArcGIS.Client Namespace > ArcGISTiledMapServiceLayer Class : Token Property

Gets or sets the token for accessing a secure ArcGIS Server service.

Syntax

Visual Basic (Declaration) 
Public Property Token As String
C# 
public string Token {get; set;}

Example

XAMLCopy Code
<esri:ArcGISTiledMapServiceLayer 
       Url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer" 
       Token="RlesXs-ILOaJghxIjn1rO0XYrAtTLrevRw1otuXyXP6e4sDefKrZcgJfq74KB7aQ" />

Remarks

ArcGIS Server services may be secured using token authentication. Use Services Directory to determine if a service requires a token to be used. A token is an encrypted string generated by a token service on the same ArcGIS Server site and the secured service. The token service can be accessed in a browser via the Get Token link in Services Explorer or by navigating to the main token service page (e.g. http://www.example.com/ArcGIS/tokens/gettoken.html). See the discussion topic on secure services for more info.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.