The WebFeatureLayer.RestoreTracking method restores the tracking of modification edits on web feature layer features. The modification edits are used to track which features are modified and updated when a web feature layer is synchronized. The setting remains in effect until the WebFeatureLayer.PauseTracking 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.RestoreTracking and WebFeatureLayer.PauseTracking, to control the tracking of modification edits in a single drawing session before you synchronize the web feature layer. You can use the WebFeatureLayer.SetModified method to override the modification tracking state.
Declaration
public bool Esri.ArcGISForAutoCAD.WebFeatureLayer.RestoreTracking(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 restored 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 resuming the tracking of modification edits on the Emergency_Facilities web feature layer during the current drawing session.// Initialize
var doc = Application.DocumentManager.MdiActiveDocument;
// Restore tracking
var success = Esri.ArcGISForAutoCAD.WebFeatureLayer.RestoreTracking(doc, "Emergency_Facilities");
// Print the success
doc.Editor.WriteMessage(success.ToString());
/* Example output
True
*/
See also
WebFeatureLayer.PauseTracking—A .NET method that pauses 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_restoretracking—An AutoLISP function that restores the tracking of modification edits on web feature layer features used to track which features are updated as modified when a web feature layer is synchronized.