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

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

Syntax

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

Property Value

The token.

Example

XAMLCopy Code
<esri:ArcGISDynamicMapServiceLayer ID="DynamicLayer"
    Url="http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer" 
    Token="T2ILopZdSMylbhKIysHa-8YgBVNPjRHsK-Kw3VoQS2RUQ0UpUAj30vGfT92YlEue" />

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.