ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data.DDL.Knowledge Namespace / KnowledgeGraphRelationshipTypeDescription Class / KnowledgeGraphRelationshipTypeDescription Constructor / KnowledgeGraphRelationshipTypeDescription Constructor(String,KnowledgeGraphRelationshipType)
The name to use for the description object
The knowledge graph relationship type to use for the description object

In This Topic
    KnowledgeGraphRelationshipTypeDescription Constructor(String,KnowledgeGraphRelationshipType)
    In This Topic
    Construct a KnowledgeGraphRelationshipTypeDescription with the given name and ArcGIS.Core.Data.Knowledge.KnowledgeGraphRelationshipType. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public KnowledgeGraphRelationshipTypeDescription( 
       string name,
       KnowledgeGraphRelationshipType relationshipType
    )
    Public Function New( _
       ByVal name As String, _
       ByVal relationshipType As KnowledgeGraphRelationshipType _
    )

    Parameters

    name
    The name to use for the description object
    relationshipType
    The knowledge graph relationship type to use for the description object
    Exceptions
    ExceptionDescription
    name is invalid
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    The name will be used for a new relationship type if the description object is used for purposes of creation. Otherwise, it will be used to identify an existing relationship type if the description object is used for the purposes of modify or delete.
    The properties of the knowledge graph relationship type will be used to initialize the property description collection for the description object. If the knowledge graph relationship type contains a shape property then a shape description property will also be added (to the description object). The spatial reference of the shape description will default to the spatial reference of the knowledge graph used to initialize the ArcGIS.Core.Data.DDL.SchemaBuilder when using a shape description derived from a KnowledgeGraphEntityType.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also