DataRowView.CreateChildView 方法

定義

傳回子系 DataViewDataTableReturns a DataView for the child DataTable.

多載

CreateChildView(DataRelation)

使用指定的子 DataView,傳回子系 DataTableDataRelationReturns a DataView for the child DataTable with the specified child DataRelation.

CreateChildView(String)

使用指定的子 DataView 名稱,傳回子系 DataTableDataRelationReturns a DataView for the child DataTable with the specified child DataRelation name.

CreateChildView(DataRelation, Boolean)

使用指定的 DataRelation 和父系,傳回子系 DataTableDataViewReturns a DataView for the child DataTable with the specified DataRelation and parent.

CreateChildView(String, Boolean)

使用指定的 DataView 名稱和父代,傳回子系 DataTableDataRelationReturns a DataView for the child DataTable with the specified DataRelation name and parent.

CreateChildView(DataRelation)

使用指定的子 DataView,傳回子系 DataTableDataRelationReturns a DataView for the child DataTable with the specified child DataRelation.

public:
 System::Data::DataView ^ CreateChildView(System::Data::DataRelation ^ relation);
public System.Data.DataView CreateChildView (System.Data.DataRelation relation);
member this.CreateChildView : System.Data.DataRelation -> System.Data.DataView
Public Function CreateChildView (relation As DataRelation) As DataView

參數

relation
DataRelation

DataRelation 物件。The DataRelation object.

傳回

DataView

子系 DataViewDataTablea DataView for the child DataTable.

適用於

CreateChildView(String)

使用指定的子 DataView 名稱,傳回子系 DataTableDataRelationReturns a DataView for the child DataTable with the specified child DataRelation name.

public:
 System::Data::DataView ^ CreateChildView(System::String ^ relationName);
public System.Data.DataView CreateChildView (string relationName);
member this.CreateChildView : string -> System.Data.DataView
Public Function CreateChildView (relationName As String) As DataView

參數

relationName
String

含有 DataRelation 名稱的字串。A string containing the DataRelation name.

傳回

DataView

子系 DataViewDataTablea DataView for the child DataTable.

適用於

CreateChildView(DataRelation, Boolean)

使用指定的 DataRelation 和父系,傳回子系 DataTableDataViewReturns a DataView for the child DataTable with the specified DataRelation and parent.

public:
 System::Data::DataView ^ CreateChildView(System::Data::DataRelation ^ relation, bool followParent);
public System.Data.DataView CreateChildView (System.Data.DataRelation relation, bool followParent);
member this.CreateChildView : System.Data.DataRelation * bool -> System.Data.DataView
Public Function CreateChildView (relation As DataRelation, followParent As Boolean) As DataView

參數

relation
DataRelation

DataRelation 物件。The DataRelation object.

followParent
Boolean

父物件。The parent object.

傳回

DataView

DataViewDataTableA DataView for the child DataTable.

例外狀況

relationnullrelation is null.

適用於

CreateChildView(String, Boolean)

使用指定的 DataView 名稱和父代,傳回子系 DataTableDataRelationReturns a DataView for the child DataTable with the specified DataRelation name and parent.

public:
 System::Data::DataView ^ CreateChildView(System::String ^ relationName, bool followParent);
public System.Data.DataView CreateChildView (string relationName, bool followParent);
member this.CreateChildView : string * bool -> System.Data.DataView
Public Function CreateChildView (relationName As String, followParent As Boolean) As DataView

參數

relationName
String

含有 DataRelation 名稱的字串。A string containing the DataRelation name.

followParent
Boolean

true 讓建立的子檢視與父系保持同步;否則為 falsetrue to keep the created child view in sync with the parent; otherwise, false.

傳回

DataView

子系 DataViewDataTablea DataView for the child DataTable.

例外狀況

relationnullrelation is null.

適用於