The WebFeatureLayer.PauseTracking method pauses the tracking of modification edits on web feature layer features. The modification edits are used to track which features are modified and should be updated when a web feature layer is synchronized. The setting remains in effect until the WebFeatureLayer.RestoreTracking method is activated on the layer, the drawing is closed, the layer's edits are synchronized, or the layer's edits are discarded. Use the combination of the two methods, WebFeatureLayer.PauseTracking and WebFeatureLayer.RestoreTracking to control the tracking of modification edits in a single drawing session before you synchronize the web feature layer. The WebFeatureLayer.SetModified method can be used to override the modification tracking state.
Declaration
public bool Esri.ArcGISForAutoCAD.WebFeatureLayer.PauseTracking(Document doc, string flName)
Parameters
| Type | Name | Description | Required |
|---|---|---|---|
Document | doc | The AutoCAD document to act on. | required |
string | flName | An existing web feature layer name in the drawing. | required |
Returns
| Type | Description |
|---|---|
bool | true if the tracking of modification edits on the web feature layer was paused successfully |
Remarks on error conditions
This method may throw an exception or return false or null if a parameter is invalid.
Example
Print the success of pausing the tracking of modification edits on the Emergency_Facilities web feature layer during the current drawing session.// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;
// Pause tracking
var success = Esri.ArcGISForAutoCAD.WebFeatureLayer.PauseTracking(doc, "Emergency_Facilities");
// Print the success
doc.Editor.WriteMessage(success.ToString());
/* Example output
True
*/
See also
WebFeatureLayer.RestoreTracking—A .NET method that restores the tracking of modification edits on web feature layer features.
WebFeatureLayer.SetModified—A .NET method that overrides the modification editing tracking value for an existing feature.
esri_webfeaturelayer_pausetracking—An AutoLISP function that pauses the tracking of modification edits on web feature layer features used to track which features should be updated as modified when a web feature layer is synchronized.