ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Knowledge Namespace / KnowledgeGraphPropertyInfo Class / HasDocumentTypeName Property
Example

In This Topic
    HasDocumentTypeName Property
    In This Topic
    Gets the knowledge graph "has document" type name.
    Syntax
    Public ReadOnly Property HasDocumentTypeName As String
    public string HasDocumentTypeName {get;}
    Example
    Get the KG Document info using KnowledgeGraphPropertyInfo
    {
      await QueuedTask.Run(() =>
      {
        //Create a connection properties
        var kg_props =
            new KnowledgeGraphConnectionProperties(new Uri(url));
        using (var kg = new KnowledgeGraph(kg_props))
        {
          // use the KnowledgeGraphPropertyInfo
          var propInfo = kg.GetPropertyNameInfo();
          var supportsDocs = propInfo.SupportsDocuments;
          var documentType = propInfo.DocumentTypeName;
          var hasDocumentType = propInfo.HasDocumentTypeName; // available at Pro 3.6 only
          var documentInfo = propInfo.DocumentPropertyInfo;
        }
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.6 or higher.
    See Also