ArcGIS Pro 2.6 API Reference Guide
ClearAsync Method
Example 

ArcGIS.Desktop.Editing.Attributes Namespace > Inspector Class : ClearAsync Method
Clears or empties the inspector.
Syntax
public Task ClearAsync()
Public Function ClearAsync() As Task

Return Value

A Task clearing or emptying the inspector.
Example
ArcGIS.Desktop.Editing.Attributes.Attribute attribute = null;
var fi = new Inspector(false);
try
{
  await fi.LoadSchemaAsync(lyr);
  attribute = fi.Attributes.c(a => a.FieldName == "My fieldName");
  await fi.ClearAsync();
}
finally
{
  fi = null;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Inspector Class
Inspector Members