ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.Knowledge Namespace / KnowledgeGraphNamedObjectType Class
Members Example

In This Topic
    KnowledgeGraphNamedObjectType Class
    In This Topic
    Abstract base class representing a named object type. Concrete subclasses include KnowledgeGraphEntityType and KnowledgeGraphRelationshipType.
    Syntax
    public abstract class KnowledgeGraphNamedObjectType : ArcGIS.Core.CoreObjectsBase, System.IDisposable  
    Public MustInherit Class KnowledgeGraphNamedObjectType 
       Inherits ArcGIS.Core.CoreObjectsBase
       Implements System.IDisposable 
    Example
    Check Whether A Graph Type has a Spatial Property
    //Use GetDocumentEntityTypeName(KnowledgeGraphDataModel kg_dm) from
    //the 'Get Whether KG Has a Document Type' snippet to
    //get the documentNameType parameter
    protected bool HasGeometry(KnowledgeGraphNamedObjectType kg_named_obj)
    {
      var props = kg_named_obj.GetProperties();
      return props.Any(prop => prop.FieldType == FieldType.Geometry);
    }
    
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CoreObjectsBase
          ArcGIS.Core.Data.Knowledge.KnowledgeGraphNamedObjectType
             ArcGIS.Core.Data.Knowledge.KnowledgeGraphEntityType
             ArcGIS.Core.Data.Knowledge.KnowledgeGraphRelationshipType

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also