Multiple choice .net vb

How do you add Web Methods in VB.Net

  1. Add keyword to Method signature

  2. Add [WebMethod] on top of the Method Signature

  3. Add {WebMethod} on top of the Method Signature

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In VB.NET, Web Methods are defined by adding the attribute immediately preceding the method signature. Note that VB.NET uses angle brackets for attributes, whereas C# uses square brackets. The stored answer text is slightly truncated but refers to this attribute requirement.