ArcGIS Pro 2.7 API Reference Guide
LoadSchemaAsync(MapMember) Method
Example 

ArcGIS.Desktop.Editing.Attributes Namespace > Inspector Class : LoadSchemaAsync(MapMember) Method
a mapMember
Load the schema of a mapMember into the inspector.
Syntax
public Task LoadSchemaAsync( 
   MapMember member
)
Public Function LoadSchemaAsync( _
   ByVal member As MapMember _
) As Task

Parameters

member
a mapMember

Return Value

Type: System.Threading.Tasks.Task A Task that fills schema for the attributes.
Example
var fi = new Inspector(false);
await fi.LoadSchemaAsync(lyr);
var attribute = fi.Attributes.FirstOrDefault(a => a.FieldName == "My fieldName");
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Inspector Class
Inspector Members