ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.KnowledgeGraph Namespace / KnowledgeGraphInvestigationView Class / SelectNamedObjectTypes Method
The set of named object types to select in the TOC.
Example

In This Topic
    SelectNamedObjectTypes Method (KnowledgeGraphInvestigationView)
    In This Topic
    Selects entity and relationship types in the TOC.
    Syntax
    Public Sub SelectNamedObjectTypes( _
       ByVal namedObjectTypes As IReadOnlyCollection(Of String) _
    ) 
    public void SelectNamedObjectTypes( 
       IReadOnlyCollection<string> namedObjectTypes
    )

    Parameters

    namedObjectTypes
    The set of named object types to select in the TOC.
    Example
    Select entity, relationship types in an investigation view
    {
      // get the active investigation view
      var iv = KnowledgeGraphInvestigationView.Active;
    
      // clear any TOC selection
      iv.ClearTOCSelection();
    
      // select entities
      List<string> entities = new List<string>();
      entities.Add("Person");
      entities.Add("Org");
      iv.SelectEntities(entities);
    
      // or select relationships
      List<string> relationships = new List<string>();
      relationships.Add("HasEmployee");
      iv.SelectRelationships(relationships);
    
      // or select a combination
      List<string> namedObjectTypes = new List<string>();
      namedObjectTypes.Add("Person");
      namedObjectTypes.Add("Org");
      namedObjectTypes.Add("HasEmployee");
      iv.SelectNamedObjectTypes(namedObjectTypes);
    }
    Requirements

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

    ArcGIS Pro version: 3.5 or higher.
    See Also