我正在使用这段代码来注册事件并希望在完成它的任务后取消注册事件但不知道该怎么做问题是我正在使用本地对象来注册事件..
代码..
public void loadData()
{
//Here client is loacal object..
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(AccessTokenDownloadCompleted);
}
void AccessTokenDownloadCompleted(object sender, DownloadStringCompletedEventArgs e)
{
}