ESRI.ArcGIS.ADF.IMS
Shared Property
See Also 
ESRI.ArcGIS.ADF.IMS.Data Namespace > ShapeWorkspace Class : Shared Property




Gets or sets a value to determine whether the Spatial Server checks if a shapefile has changed.

Syntax

Visual Basic (Declaration) 
Public Property Shared As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ShapeWorkspace
Dim value As Boolean
 
instance.Shared = value
 
value = instance.Shared
C# 
public bool Shared {get; set;}

Remarks

When set to True, the ArcIMS Spatial Server checks if a shapefile has been modified outside of ArcIMS. While a shapefile is being edited, ArcIMS sends a message to the ArcIMS Spatial Server log files notifying that an update is in progress. When set to False, the ArcIMS Spatial Server does not check whether a shapefile has been updated. Access to the shapefile is faster, but the integrity of the shapefile is at risk if it is modified. It is recommended to use True unless safeguards are in place to assure that the shapefile is not edited.

In general, access to shapefiles is much faster if the shapefiles reside on the same machine as the ArcIMS Spatial Server. If the shapefiles are on a separate machine, access is faster when set to False, but the integrity of the shapefile is at risk.

When using the CodePage, GeoIndexDir, and Shared properties, you should be aware of the following. Workspaces are not duplicated inside the Spatial Server. Therefore, if you start one service using ShapeWorkspace "A" and a second service also using the same workspace, the values for CodePage, GeoIndexDir, and Shared from the first service are used as the values for the second service. If in the first service you set Shared = False, and in the second service you set Shared = True, the Spatial Server will ignore Shared = True and use Shared = False instead. The same is true for values used in CodePage and GeoIndexDir.

See Also

© 2010 All Rights Reserved.