vb.net Callbacks

I have this documentation for an Async method...
------------------------------------------------------------------------------------------------------
SearchAsync method

Parameter        Description

callback             The delegate to call once a response has been received.
searchTerm      Free-text search filter.
category            Optional category of item to get.
-------------------------------------------------------------------------------------------------------

How do I write a callback in vb.net ?

Thanks
LVL 1
DodsworthAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
0
DodsworthAuthor Commented:
I'm a bit confused.
If callback is a parameter, shouldn't it show up in the intellisense box ?
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
>shouldn't it show up in the intellisense box ?
in what regards? the functions to pass? please clarify
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

DodsworthAuthor Commented:
When I type "SearchAsync(" a box pops up showing "<Awaitable> Public Function SearchAsync([searchterm as String = Nothing], [category as Nokia.Music.Types.Category?=Nothing])

But there is no placeholder for the callback parameter.
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
possibly then either the documentation is wrong...
note: I don't use VB.net regularly, so I don't know about any special cases for the intellisense there, as callback functions is something I use very rarely.

the important point is compiling: can you specify the 3 parameters (the first one using AddressOf some_function style) or not?
0
DodsworthAuthor Commented:
Won't compile :(  Does that suggest the documentation is incorrect or could there be some inconsistency between C# and VB.net ?
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I would say so...
0
DodsworthAuthor Commented:
So how to tell when an awaited function completes if the API has no built in mechanism to do so ?
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
that is the most unwanted answer;
not possible

however, I presume it's rather a bug in the function declaration, I would check with the API provider about this issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.