سؤال

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);
    }
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top