2010-12-29 2 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을 체크 아웃 할 수도 있습니다.