2007/05/17 | Asp.net C# 委托定义,与使用
类别(代码营地) | 评论(0) | 阅读(959) | 发表于 14:08
定义委托类
public delegate void DelegateProgress();

调用
    
  protected void Button1_Click(object sender,EventArgs e){  
    ...  
    DelegateProgress Press = new DelegateProgress(MyFunction);    
    IAsyncResult result = team_Press.BeginInvoke(null, null);    
    ...    
  }  
  protected void MyFunction()    
  {    
    ...    
  }    
0

评论Comments