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
| 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 |
|---|---|
int | An edit code indicating whether the web feature layer has updates on the server.
|
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.