我想獲取SharePoint上文件的名稱屬性?如何獲取SharePoint中文件的元數據
如果我試圖讓我創建的列的元數據,我可以用這個方法
文件是SPFILE得到這個數據。
if (file.GetProperty("DocId") != null)
{
docId = file.GetProperty("DocId").ToString();
}
但是,當我試圖讓名
if (file.GetProperty("Name") != null)
{
docId = file.GetProperty("Name").ToString();
}
else {...}
它轉到else語句。
我該在哪裏出錯?
謝謝。
爲什麼要投票? – kevin