Skip To Content

WebFeatureLayer.HasWebUpdates (.NET)

The WebFeatureLayer.HasWebUpdates method identifies whether the specified web feature layer has server side updates within the project area.

Declaration

public int Esri.ArcGISForAutoCAD.WebFeatureLayer.HasWebUpdates(Document doc, string flName)

Parameters

TypeNameDescriptionRequired

Document

doc

The AutoCAD document to act on.

required

string

flName

An existing web feature layer name in the drawing.

required

Returns

TypeDescription

int

An edit code indicating whether the web feature layer has updates on the server.

  • 1—The layer has updates on the server.
  • 0—The layer does not have changes from the server (changes include addition, deletion, and attribute updates).
  • -1—The layer has editor tracking enabled but no valid edit time or is from a previous release.

Remarks on error conditions

This method may throw an exception or return -1 or null if a parameter is invalid.

Example

Print the status of whether the UtilityPoles web feature layer has any server side edits within the current project area.

// Initialize
Document doc = Application.DocumentManager.MdiActiveDocument;

// Determine if the web feature layer has web updates
var hasUpdates = Esri.ArcGISForAutoCAD.WebFeatureLayer.HasWebUpdates(doc, "UtilityPoles");

// Print the result
doc.Editor.WriteMessage(hasUpdates.ToString());

/* Example output
1
*/

See also

esri_webfeaturelayer_hasWebUpdates—An AutoLISP function that identifies whether the specified web feature layer has server side updates within the project area.