Excel Read HelperProcess Large Excel Streaming Async 方法
Definition
程序集: Suresking.Utility (在 Suresking.Utility.dll 中) 版本:1.3.22+a27276bb8ffde055e69ff608e98aafba279e1e99
public static Task<int> ProcessLargeExcelStreamingAsync(
string filePath,
int headerRows,
Func<List<Dictionary<string, string>>, Task> rowProcessor,
int batchSize = 1000,
IProgress<int>? progress = null,
CancellationToken cancellationToken = default
)参数
- filePath String
[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <param name="filePath"/> 文档]
- headerRows Int32
[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <param name="headerRows"/> 文档]
- rowProcessor FuncListDictionaryString, String, Task
[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <param name="rowProcessor"/> 文档]
- batchSize Int32 (Optional)
[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <param name="batchSize"/> 文档]
- progress IProgressInt32 (Optional)
[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <param name="progress"/> 文档]
- cancellationToken CancellationToken (Optional)
[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <param name="cancellationToken"/> 文档]
返回值
TaskInt32[缺少 "M:Suresking.Utility.ExcelReadHelper.ProcessLargeExcelStreamingAsync(System.String,System.Int32,System.Func{System.Collections.Generic.List{System.Collections.Generic.Dictionary{System.String,System.String}},System.Threading.Tasks.Task},System.Int32,System.IProgress{System.Int32},System.Threading.CancellationToken)" 的 <returns> 文档]