I am trying to get the name property of a file on SharePoint ?
If I try to get the metadata of the columns I created, I can get this data with this method
file is SPFile.
if (file.GetProperty("DocId") != null)
{
docId = file.GetProperty("DocId").ToString();
}
But when I try to get the name
if (file.GetProperty("Name") != null)
{
docId = file.GetProperty("Name").ToString();
}
else {...}
it goes to else statement.
Where do I go wrong?
Thanks.
It's OK after I use