How to check last added item is a folder or not in Sharepoint event receiver
-
04-07-2021 - |
题
Inside my ItemAdded function I want to check the last added item is a folde or not. How to check that.
解决方案
public class ClassName : SPItemEventReceiver
{
public override void ItemAdded(SPItemEventProperties properties)
{
bool isFolder = (properties.ListItem.Folder != null);
}
}
不隶属于 StackOverflow