ESRI.ArcGIS.ServerTools
ImportMapServerCache Constructor(String,String,String,Object,Int32)
See Also  Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright @ ESRI | Careers
ESRI.ArcGIS.ServerTools Namespace > ImportMapServerCache Class > ImportMapServerCache Constructor : ImportMapServerCache Constructor(String,String,String,Object,Int32)




server_name
The ArcGIS Server machine hosting the service into which tiles will be imported. (In, Required)
object_name
The name of the map service into which tiles will be imported. This map service must have a tiling scheme defined that matches the tiling scheme of the tiles being imported. (In, Required)
data_frame
The source data frame for the map service. (In, Required)
source_cache_dataset
The path to the tiles that will be imported. This is represented by a raster dataset icon in the tool user interface. If you are scripting, it is the path to the cache folder matching the data frame name. You do not have to point this parameter at a registered server cache directory; in fact, most of the time you'll be pointing at a location on disk where tiles have been previously exported. (In, Required)
thread_count
Number of map service instances to use while importing the cache. By default the maximum allowable number of instances will be used (default for an ArcGIS Server service is 2). If you have more server power, you can raise the maximum allowable number of instances in the Service Properties, then raise this parameter when you run the tool. (In, Required)
Constructor that takes all required parameters for geoprocessor execution.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal server_name As String, _
   ByVal object_name As String, _
   ByVal data_frame As String, _
   ByVal source_cache_dataset As Object, _
   ByVal thread_count As Integer _
)
Visual Basic (Usage)Copy Code
Dim server_name As String
Dim object_name As String
Dim data_frame As String
Dim source_cache_dataset As Object
Dim thread_count As Integer
 
Dim instance As ImportMapServerCache(server_name, object_name, data_frame, source_cache_dataset, thread_count)
C# 
public ImportMapServerCache( 
   string server_name,
   string object_name,
   string data_frame,
   object source_cache_dataset,
   int thread_count
)

Parameters

server_name
The ArcGIS Server machine hosting the service into which tiles will be imported. (In, Required)
object_name
The name of the map service into which tiles will be imported. This map service must have a tiling scheme defined that matches the tiling scheme of the tiles being imported. (In, Required)
data_frame
The source data frame for the map service. (In, Required)
source_cache_dataset
The path to the tiles that will be imported. This is represented by a raster dataset icon in the tool user interface. If you are scripting, it is the path to the cache folder matching the data frame name. You do not have to point this parameter at a registered server cache directory; in fact, most of the time you'll be pointing at a location on disk where tiles have been previously exported. (In, Required)
thread_count
Number of map service instances to use while importing the cache. By default the maximum allowable number of instances will be used (default for an ArcGIS Server service is 2). If you have more server power, you can raise the maximum allowable number of instances in the Service Properties, then raise this parameter when you run the tool. (In, Required)

See Also

© 2010 All Rights Reserved.