Asp.net C# 委托定义,与使用

      代码营地 2007-5-17 14:08:00
定义委托类
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()    
  {    
    ...    
  }    
标签集:TAGS:CShap 委托 delegate
回复Comments() 点击Count()
喜欢就顶一下

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}