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

In This Topic
    DocumentPropertyInfo Property
    In This Topic
    Gets the DocumentPropertyInfo if documents are supported. If documents are not supported then this will be null. See SupportsDocuments.
    Syntax
    Public ReadOnly Property DocumentPropertyInfo As DocumentPropertyInfo
    public DocumentPropertyInfo DocumentPropertyInfo {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.5 or higher.
    See Also