public void queryPage(PageInfoOfuserCLUigIiY record) { ServiceUserClient client = new ServiceUserClient(); client.queryPageCompleted += (sender, e) => { ServicesEventArgs <PageInfoOfuserCLUigIiY> arg = new ServicesEventArgs <PageInfoOfuserCLUigIiY>(); if (e.Error == null) { arg.Result = e.Result; arg.Succesed = true; } else { arg.Succesed = false; arg.Error = e.Error; } if (queryPageCompleted != null) { queryPageCompleted.Invoke(this, arg); } }; client.queryPageAsync(record); }