write csv file method that call in clr environment
Write_csv
01 Syntax
Microsoft.VisualBasic.Data.Framework.Write_csv
02 Methods
03 Members
SaveTo``1(
IEnumerable(Of ``0), String, Boolean, Encoding, String, Boolean, Dictionary(Of String, String), Int32, Dictionary(Of String, Int32), Boolean, Boolean, Boolean)Save the object collection data dump into a csv file.
Remarks
(将一个对象数组之中的对象保存至一个Csv文件之中,请注意:
- 这个方法仅仅会保存简单的基本数据类型的属性值
- 并且这个方法仅适用于小型数据集, 如果需要保存大型数据集, 请使用Linq版本的拓展函数)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | 应该是List, Array或者Collection, 不应该是一个Linq拓展表达式 |
path | String | - |
strict | Boolean | If true then all of the simple data type property its value will be save to the data file, if not then only save the property with the ColumnAttribute |
encoding | Encoding | - |
maps | String |
|
layout | Boolean | 可以通过这个参数来进行列顺序的重排,值越小表示排在越前面 |
Save the object collection data dump into a csv file. (将一个对象数组之中的对象保存至一个Csv文件之中,请注意:
- 这个方法仅仅会保存简单的基本数据类型的属性值
- 并且这个方法仅适用于小型数据集, 如果需要保存大型数据集, 请使用Linq版本的拓展函数)
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
source | IEnumerable(Of ``0) | 应该是List, Array或者Collection, 不应该是一个Linq拓展表达式 |
SaveTo(
IEnumerable(Of T), String, Boolean, Encoding, String, Boolean, Dictionary(Of String, String), Int32, Dictionary(Of String, Int32), Boolean, Boolean, Boolean)SaveTo(
IEnumerable(Of T), Stream, Write_csv+Arguments)