Excel表格中的Excel Interopsorting数据

我正在使用C#并希望基于两列对一些数据进行sorting。 我已经浏览了互联网上的各种网页,并拿出了下面的代码。 问题是,代码不能编译。

我正在使用Excel 2013&.Net Microsoft Excel对象库是版本15.我可以做所有我需要在Excel中做预计sorting数据。

突出显示sorting方法中具有Type.Missing的第三行。 它说参数5不能从对象转换到Microsoft.Office.Interop.Excel.XlSortOrder。

Excel.Range rngSort = _xlWorksheet.get_Range("A2", "J" + lastRow); rngSort.Sort(rngSort.Columns[1, Type.Missing], Excel.XlSortOrder.xlAscending, rngSort.Columns[2, Type.Missing], Type.Missing, Excel.XlSortOrder.xlAscending, Type.Missing, Excel.XlSortOrder.xlAscending, Excel.XlYesNoGuess.xlYes, Type.Missing, Type.Missing, Excel.XlSortOrientation.xlSortColumns, Excel.XlSortMethod.xlPinYin, Excel.XlSortDataOption.xlSortNormal, Excel.XlSortDataOption.xlSortNormal, Excel.XlSortDataOption.xlSortNormal); rngSort = null;