0
我想將DataSet對象中的數據添加到現有字符串中。使用Powershell v1.0,如何將DataSet中的數據添加到字符串中?
目前代碼:
$Dataset.Tables[0] | foreach {
$_
}
返回:
但是,當我嘗試將此數據添加到字符串,我什麼也沒得到補充。
$emailBody = "ALERT!: The following errors were found - `n"
$Dataset.Tables[0] | foreach {
$emailBody += <I don't know what to put here>
}
如何獲取DataSet中的結果並將它們添加到此字符串中?