Following event is called when site collection is created
public class EventReceiver1 :SPWebProvisioningProvider
{
public override void Provision(SPWebProvisioningProperties props)
{
throw new NotImplementedException();
}
}
Following event is called when subsite is created
public class EventReceiver2 : SPWebEventReceiver
{
public override void WebAdding(SPWebEventProperties properties)
{
base.WebAdding(properties);
}
}
public class EventReceiver1 :SPWebProvisioningProvider
{
public override void Provision(SPWebProvisioningProperties props)
{
throw new NotImplementedException();
}
}
Following event is called when subsite is created
public class EventReceiver2 : SPWebEventReceiver
{
public override void WebAdding(SPWebEventProperties properties)
{
base.WebAdding(properties);
}
}
No comments:
Post a Comment