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.

适用于