2
在SharePoint提交了項目,這是一些代碼,我寫道:嘗試修改使用PowerShell
Add-PSSnapin Microsoft.SharePoint.PowerShell
$webURL = "http://nycs00058260/sites/usitp"
$lists = "OsEM1","OsEM2","OsEM3","OsEM4"
$web = Get-SPWeb -Identity "http://nycs00058260/sites/usitp"
foreach($list in $lists)
... ...
Write-Host $item["Title"]
#$item["Item"]=$item["Title"] +" ,"+$webURL+"\"+$filename
$item["Item"]="$tmpValue"+" ,$item[Title]"
$item.Update()
}
}
}
它說:無法索引類型MicroSoft.SharePoint.SPListItem的對象。 當我更改$ item [「Item」]的值時,會發生什麼事情?