This document is archived and information here might be outdated.  Recommended version.


IMapServerInit2 Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServerInit2 Interface

Provides access to additional members that support initializing a map server.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

In order to use MapServer in COM you need to use IMapServerInit. Set a file path location of the target map document and a file path location for the output.

Members

Description
Method Connect Initializes the map server with an mxd or pmf file stored at the specified path. The path must be accessible to the server machine.
Read-only property FilePath The map document path.
Read/write property MaxBufferCount The maximum number of records buffered on the server for display.
Read/write property MaxImageHeight The maximum height in pixels of an image request.
Read/write property MaxImageWidth The maximum width in pixels of an image request.
Read/write property MaxRecordCount The maximum number of records returned for query results (Identify, Find, QueryFeatureData, and QueryHyperlinks).
Read/write property PhysicalCacheDirectory The physical directory for cache files.
Read/write property PhysicalOutputDirectory The physical directory for output files.
Read/write property SOMCacheDirectory The parent directory for cache files.
Read-only property SOMVirtualCacheDirectory The parent virtual directory for cache files.
Method StartWithData An alternative to calling Connect(). This method synthesizes a map document with a single layer based on the given IDataset object and initializes the map server for processing.
Method Stop Clears out all of the map objects in memory. The client must call one of the Start methods again before attempting any other operations.
Read/write property VirtualCacheDirectory The virtual directory for cache files.
Read/write property VirtualOutputDirectory The virtual directory for output files.

Inherited Interfaces

Interfaces Description
IMapServerInit Provides access to members that support initializing a map server.

CoClasses that implement IMapServerInit2

CoClasses and Classes Description
MapServer The MapServer component provides programmatic access to the contents of a map document on disk, and creates images of the map contents based on user requests. Designed for use in building map-based web services and web applications.