Asynchronous AsyncResult类未进入回调函数

Asynchronous AsyncResult类未进入回调函数,asynchronous,delegates,Asynchronous,Delegates,这是我的密码- DateTimeDelegate dtdel = new DateTimeDelegate(GetCurrentDateTimeAt); IAsyncResult async = dtdel.BeginInvoke(UserContext.Latitude.ToString(), UserContext.Longitude.ToString(), new AsyncCallback(DateTimeCallBack), null); 我该怎么办?该类在系统.运行时.远程处

这是我的密码-

DateTimeDelegate dtdel = new DateTimeDelegate(GetCurrentDateTimeAt);
IAsyncResult async = dtdel.BeginInvoke(UserContext.Latitude.ToString(), UserContext.Longitude.ToString(), new AsyncCallback(DateTimeCallBack), null);  

我该怎么办?

该类在
系统.运行时.远程处理.消息传递
命名空间中定义。确保你已经包括了它。您还可以在MSDN上签出。

该类是在
System.Runtime.Remoting.Messaging
命名空间中定义的。确保你已经包括了它。您也可以在MSDN上签出

public DateTimeCallBack(IAsyncResult asy)
    {
        AsyncResult result = (AsyncResult)asy; // error 'AsyncResult' could not be found

    }