아래의 -GetTransactionsCompletedEventHandler 방법에 문제가 있습니다. 필요한 인수를 전달하려고하지만 익숙하지 않은 형식으로 더 많은 매개 변수를 요청하고 있습니다.
GetTransactionsCompletedEventHandler (object [] results (object, GetTransactionsCompletedEventArgs) target)를 요청합니다.
누구든지이 메서드를 올바르게 호출하는 방법에 대한 올바른 방향을 알려줄 수 있습니까?
static object[] results;
static Exception exception;
static bool cancelled;
static object userState;
TransactionService.GetTransactionsCompletedEventArgs test1 = new TransactionService.GetTransactionsCompletedEventArgs(results, exception, cancelled, userState);
public void testMethod()
{
}
static List<string> orderlist;
public object testObject;
public void getTransactions()
{
TransactionService.GetTransactionsCompletedEventHandler test = new TransactionService.GetTransactionsCompletedEventHandler(testObject, test1);
}
유용한 의견 주셔서 감사합니다. 나는 이것에 대해 잘못 가고 있다는 것을 알았고 서비스를 인스턴스화해야하며 이런 방식으로 트랜잭션을 얻을 수 있습니다.
TransactionService.TransactionService _service = new TransactionService.TransactionService();
TransactionService.TransactionSearchParameters _params = new TransactionService.TransactionSearchParameters();
TransactionService.Transaction []list = _service.GetTransactions(_params);
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다