Parameters
- description
- The ValidationDescription which describes the details of the validate operation.
Exception | Description |
---|---|
System.ArgumentNullException | description is null. |
System.InvalidOperationException | This operation cannot be invoked inside ArcGIS.Core.Data.Geodatabase.ApplyEdits or when an edit operation is in progress. |
ArcGIS.Core.Data.Exceptions.GeodatabaseException | A geodatabase-related exception has occurred. |
Dirty areas represent areas where the spatial integrity of the topology has not been validated. When a topology is first created, the entire dataset is considered dirty. Subsequently, dirty areas are created anytime a feature's geometry or subtype is modified or topology rules are added or removed. A topology validation is an operation to clean up dirty areas. The operation entails snapping features together within a cluster tolerance and test for rule violations. Any feature that violates one or more topology rules will result in a topology error, which can be marked (i.e., promoted) as an exception.
This operation generates its own editing transaction and therefore cannot be wrapped inside a separate transaction.
When writing an ArcGIS Pro add-in, the extension method ArcGIS.Core.Data.CoreDataExtensions.ValidateInEditOperation should be used instead. This extension method will create an edit operation on the Pro undo/redo stack and redraw any affected layers.
Target Platforms: Windows 11, Windows 10