以下代码中,当try块内出现异常时,程序for循环的后续循环应该是会继续运行的吧?
//In some cases, the original CAB file to be extracted may contain the CAB files. So we need to extract the included CAB files.
string[] cabfiles = Directory.GetFiles(destPath, "*.cab", SearchOption.AllDirectories);
foreach (string cab in cabfiles)
{
try
{
ExtractCabDirectly(cab, destPath);
}
catch (Exception ex)
{
string errMsg = String.Format(CultureInfo.InvariantCulture, "ExtractCab: ExtractCabDirectly failed (includedCabFilePath = {0}, destPath = {1}).", cab, destPath);
Log.WriteEvent("PostEndProcess", 30000, EventLogEntryType.Error, EventCategory.Operational, errMsg, ex);
}
}