public class EventReceiver1 : SPItemEventReceiver
{
SPContext current;
public EventReceiver1()
{
current = SPContext.Current;
}
///
/// An item is being added.
///
public override void ItemAdding(SPItemEventProperties properties)
{
base.ItemAdding(properties);
}
}
}
Now we can use current variable to get the SPcontext.
{
SPContext current;
public EventReceiver1()
{
current = SPContext.Current;
}
///
/// An item is being added.
///
public override void ItemAdding(SPItemEventProperties properties)
{
base.ItemAdding(properties);
}
}
}
Now we can use current variable to get the SPcontext.
Comments
Post a Comment