共用方式為


DesignerDataRelationship 建構函式

定義

使用指定之名稱、父資料行和子關聯性,初始化 DesignerDataRelationship 類別的新執行個體。

public:
 DesignerDataRelationship(System::String ^ name, System::Collections::ICollection ^ parentColumns, System::ComponentModel::Design::Data::DesignerDataTable ^ childTable, System::Collections::ICollection ^ childColumns);
public DesignerDataRelationship (string name, System.Collections.ICollection parentColumns, System.ComponentModel.Design.Data.DesignerDataTable childTable, System.Collections.ICollection childColumns);
new System.ComponentModel.Design.Data.DesignerDataRelationship : string * System.Collections.ICollection * System.ComponentModel.Design.Data.DesignerDataTable * System.Collections.ICollection -> System.ComponentModel.Design.Data.DesignerDataRelationship
Public Sub New (name As String, parentColumns As ICollection, childTable As DesignerDataTable, childColumns As ICollection)

參數

name
String

關聯性的名稱。

parentColumns
ICollection

定義關聯性之父資料表中的資料行。

childTable
DesignerDataTable

關聯性中的子資料表。

childColumns
ICollection

定義關聯性之子資料表中的資料行。

適用於