C#中 event事件中的Add和Remove是什么意思?请高手指点!
举例如下:publiceventPageChangingEventHandlerPageChanging{add{base.Events.AddHandler(AspNe...
举例如下:
public event PageChangingEventHandler PageChanging
{
add
{
base.Events.AddHandler(AspNetPager.EventPageChanging, value);
}
remove
{
base.Events.RemoveHandler(AspNetPager.EventPageChanging, value);
}
}
其中的add和remove是什么意思? 展开
public event PageChangingEventHandler PageChanging
{
add
{
base.Events.AddHandler(AspNetPager.EventPageChanging, value);
}
remove
{
base.Events.RemoveHandler(AspNetPager.EventPageChanging, value);
}
}
其中的add和remove是什么意思? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询