ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Knowledge Namespace / KnowledgeGraphIdentifierGeneration Class / GetMethodHint Method
Example

In This Topic
    GetMethodHint Method
    In This Topic
    Gets the UUID method hint for the knowledge graph. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function GetMethodHint() As KnowledgeGraphUUIDMethodHint
    public KnowledgeGraphUUIDMethodHint GetMethodHint()

    Return Value

    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Get Data Model Identifier Info
    {
      await QueuedTask.Run(() =>
      {
        //Create a connection properties
        var kg_props =
            new KnowledgeGraphConnectionProperties(new Uri(url));
        using (var kg = new KnowledgeGraph(kg_props))
        {
          //Get the KnowledgeGraph Data Model
          using (var kg_dm = kg.GetDataModel())
          {
            var kg_id_info = kg_dm.GetIdentifierInfo();
            var kg_id_gen = kg_id_info.GetIdentifierGeneration();
            if (kg_id_info is KnowledgeGraphNativeIdentifier kg_ni)
            {
              System.Diagnostics.Debug.WriteLine(
                $"IdentifierInfo: KnowledgeGraphNativeIdentifier");
            }
            else if (kg_id_info is KnowledgeGraphUniformIdentifier kg_ui)
            {
              System.Diagnostics.Debug.WriteLine(
                $"IdentifierInfo: KnowledgeGraphUniformIdentifier");
              System.Diagnostics.Debug.WriteLine(
                $"IdentifierName: '{kg_ui.GetIdentifierName()}'");
            }
            System.Diagnostics.Debug.WriteLine(
              $"Identifier MethodHint: {kg_id_gen.GetMethodHint()}");
          }
        }
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.2 or higher.
    See Also