ArcGIS Pro 2.6 API Reference Guide
SetIsEditingEnabledAsync Method

ArcGIS.Desktop.Core Namespace > Project Class : SetIsEditingEnabledAsync Method
Sets a value that indicates if editing is to be enabled or disabled within the application.
Syntax
public Task<bool> SetIsEditingEnabledAsync( 
   bool value
)
Public Function SetIsEditingEnabledAsync( _
   ByVal value As Boolean _
) As Task(Of Boolean)

Parameters

value

Return Value

A task representing a value indicating if the method was successful.
Remarks
Use this method to enable or disable editing within the application. Setting this value is independent of the visibility of the Enable/Disable editing control on the Edit Tab. If the project has unsaved edits, setting this value to false will not succeed, those edits must be saved or discarded first. Use the ArcGIS.Desktop.Core.Project.IsEditingEnabled property to determine if editing is enabled or disabled within the application.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Project Class
Project Members