2010-12-29 8 views
1

になっていない私のコード -AsyncResultクラスは、ここでは、コールバック関数

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

...

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

    } 

私は何をすべき?

答えて

1

AsyncResultクラスは、System.Runtime.Remoting.Messaging名前空間で定義されています。それが含まれていることを確認してください。また、MSDNのfollowing articleをチェックアウトすることもできます。

関連する問題