ArcGIS Pro 2.6 API Reference Guide
DiscardEditsAsync Method

ArcGIS.Desktop.Core Namespace > Project Class : DiscardEditsAsync Method
Discards all unsaved data edits in the project
Syntax
public Task<bool> DiscardEditsAsync()
Public Function DiscardEditsAsync() As Task(Of Boolean)

Return Value

true if discarding edits is successful
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Project Class
Project Members