ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Editing.Attributes Namespace / Inspector Class / LoadAsync Method / LoadAsync(MapMember,Int64) Method
mapMember
object ID
Example

In This Topic
    LoadAsync(MapMember,Int64) Method
    In This Topic
    Load a single feature into the inspector.
    Syntax
    Public Overloads Function LoadAsync( _
       ByVal member As MapMember, _
       ByVal oid As Long _
    ) As Task
    public Task LoadAsync( 
       MapMember member,
       long oid
    )

    Parameters

    member
    mapMember
    oid
    object ID
    Example
    Load a feature from a layer into the inspector
    {
      // Loads a feature from the specified feature layer into an Inspector instance.
      // create an instance of the inspector class
      var inspector = new Inspector();
      // load the feature with ObjectID 'objectId' into the inspector
      await inspector.LoadAsync(featureLayer, objectId);
    }
    Load map selection into Inspector
    {
      // Loads the selected features into an Inspector instance.
      // get the first layer and its corresponding selected feature OIDs
      var firstSelectionSet = selectedFeatures.ToDictionary().First();
      // create an instance of the inspector class
      var inspector = new Inspector();
      // load the selected features into the inspector using a list of object IDs
      await inspector.LoadAsync(firstSelectionSet.Key, firstSelectionSet.Value);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also