ESRI.ArcGIS.DataManagementTools
CreateRelationshipClass Constructor(Object,Object,Object,String,String,String,String,String,String,String,String)
See Also  Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright @ ESRI | Careers
ESRI.ArcGIS.DataManagementTools Namespace > CreateRelationshipClass Class > CreateRelationshipClass Constructor : CreateRelationshipClass Constructor(Object,Object,Object,String,String,String,String,String,String,String,String)




origin_table
The table or feature class that is associated to the destination table. (In, Required)
destination_table
The table that is associated to the origin table. (In, Required)
out_relationship_class
The relationship class that is created. (Out, Required)
relationship_type
The type of relationship to create between the origin and destination tables. (In, Required)
forward_label
A name to uniquely identify the relationship when navigating from the origin table to the destination table. (In, Required)
backward_label
A name to uniquely identify the relationship when navigating from the destination table to the origin table. (In, Required)
message_direction
The direction in which messages are passed between the origin and destination tables. For example, in a relationship between poles and transformers, when the pole is deleted, it sends a message to its related transformer objects informing them it was deleted. (In, Required)
cardinality
Determines how many relationships exist between rows or features in the origin and rows or features in the destination table. (In, Required)
attributed
Specifies if the relationship will have attributes. (In, Required)
origin_primary_key
The field in the origin table, typically the OID field, that links it to the Origin Foreign Key field in the relationship class table. (In, Required)
origin_foreign_key
The field in the relationship class table that links it to the Origin Primary Key field in the origin table. (In, Required)
Constructor that takes all required parameters for geoprocessor execution.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal origin_table As Object, _
   ByVal destination_table As Object, _
   ByVal out_relationship_class As Object, _
   ByVal relationship_type As String, _
   ByVal forward_label As String, _
   ByVal backward_label As String, _
   ByVal message_direction As String, _
   ByVal cardinality As String, _
   ByVal attributed As String, _
   ByVal origin_primary_key As String, _
   ByVal origin_foreign_key As String _
)
Visual Basic (Usage)Copy Code
Dim origin_table As Object
Dim destination_table As Object
Dim out_relationship_class As Object
Dim relationship_type As String
Dim forward_label As String
Dim backward_label As String
Dim message_direction As String
Dim cardinality As String
Dim attributed As String
Dim origin_primary_key As String
Dim origin_foreign_key As String
 
Dim instance As CreateRelationshipClass(origin_table, destination_table, out_relationship_class, relationship_type, forward_label, backward_label, message_direction, cardinality, attributed, origin_primary_key, origin_foreign_key)
C# 
public CreateRelationshipClass( 
   object origin_table,
   object destination_table,
   object out_relationship_class,
   string relationship_type,
   string forward_label,
   string backward_label,
   string message_direction,
   string cardinality,
   string attributed,
   string origin_primary_key,
   string origin_foreign_key
)

Parameters

origin_table
The table or feature class that is associated to the destination table. (In, Required)
destination_table
The table that is associated to the origin table. (In, Required)
out_relationship_class
The relationship class that is created. (Out, Required)
relationship_type
The type of relationship to create between the origin and destination tables. (In, Required)
forward_label
A name to uniquely identify the relationship when navigating from the origin table to the destination table. (In, Required)
backward_label
A name to uniquely identify the relationship when navigating from the destination table to the origin table. (In, Required)
message_direction
The direction in which messages are passed between the origin and destination tables. For example, in a relationship between poles and transformers, when the pole is deleted, it sends a message to its related transformer objects informing them it was deleted. (In, Required)
cardinality
Determines how many relationships exist between rows or features in the origin and rows or features in the destination table. (In, Required)
attributed
Specifies if the relationship will have attributes. (In, Required)
origin_primary_key
The field in the origin table, typically the OID field, that links it to the Origin Foreign Key field in the relationship class table. (In, Required)
origin_foreign_key
The field in the relationship class table that links it to the Origin Primary Key field in the origin table. (In, Required)

See Also

© 2010 All Rights Reserved.