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




origin_table
The table or feature class that will be associated to the destination table. (In, Required)
destination_table
The table or feature class that will be associated to the origin table. (In, Required)
out_relationship_class
The relationship class that will be created. (Out, Required)
relationship_type
The type of association to create between the origin and destination tables. (In, Required)
forward_label
A label describing the relationship as it is traversed from the origin table/feature class to the destination table/feature class. (In, Required)
backward_label
A label describing the relationship as it is traversed from the destination table/feature class to the origin table/feature class. (In, Required)
message_direction
The direction messages will be propagated between the objects in the relationship. 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
The cardinality of the relationship between the origin and destination. (In, Required)
relationship_table
The table containing attributes that will be added to the relationship class. (In, Required)
attribute_fields
The fields containing attribute values that will be added to the relationship class. (In, Required)
origin_primary_key
The field in the origin table that will be used to create the relationship. Generally, this is the object identifier field. (In, Required)
origin_foreign_key
The name of the Foreign Key field in the relationship table that refers to the Primary Key field in the origin table/feature class. (In, Required)
destination_primary_key
The field in the destination table that will be used to create the relationship. Generally, this is the object identifier field. (In, Required)
destination_foreign_key
The field in the relationship table that refers to the Primary Key field in the destination 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 relationship_table As Object, _
   ByVal attribute_fields As Object, _
   ByVal origin_primary_key As String, _
   ByVal origin_foreign_key As String, _
   ByVal destination_primary_key As String, _
   ByVal destination_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 relationship_table As Object
Dim attribute_fields As Object
Dim origin_primary_key As String
Dim origin_foreign_key As String
Dim destination_primary_key As String
Dim destination_foreign_key As String
 
Dim instance As TableToRelationshipClass(origin_table, destination_table, out_relationship_class, relationship_type, forward_label, backward_label, message_direction, cardinality, relationship_table, attribute_fields, origin_primary_key, origin_foreign_key, destination_primary_key, destination_foreign_key)
C# 
public TableToRelationshipClass( 
   object origin_table,
   object destination_table,
   object out_relationship_class,
   string relationship_type,
   string forward_label,
   string backward_label,
   string message_direction,
   string cardinality,
   object relationship_table,
   object attribute_fields,
   string origin_primary_key,
   string origin_foreign_key,
   string destination_primary_key,
   string destination_foreign_key
)

Parameters

origin_table
The table or feature class that will be associated to the destination table. (In, Required)
destination_table
The table or feature class that will be associated to the origin table. (In, Required)
out_relationship_class
The relationship class that will be created. (Out, Required)
relationship_type
The type of association to create between the origin and destination tables. (In, Required)
forward_label
A label describing the relationship as it is traversed from the origin table/feature class to the destination table/feature class. (In, Required)
backward_label
A label describing the relationship as it is traversed from the destination table/feature class to the origin table/feature class. (In, Required)
message_direction
The direction messages will be propagated between the objects in the relationship. 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
The cardinality of the relationship between the origin and destination. (In, Required)
relationship_table
The table containing attributes that will be added to the relationship class. (In, Required)
attribute_fields
The fields containing attribute values that will be added to the relationship class. (In, Required)
origin_primary_key
The field in the origin table that will be used to create the relationship. Generally, this is the object identifier field. (In, Required)
origin_foreign_key
The name of the Foreign Key field in the relationship table that refers to the Primary Key field in the origin table/feature class. (In, Required)
destination_primary_key
The field in the destination table that will be used to create the relationship. Generally, this is the object identifier field. (In, Required)
destination_foreign_key
The field in the relationship table that refers to the Primary Key field in the destination table. (In, Required)

See Also

© 2010 All Rights Reserved.