The web method attribute can be placed on a method in a web service class to mark it as available to be called via the web. The method and class must be marked public and must run inside of an ASP+ web application.
Object
Attribute
WebMethodAttribute
[Visual Basic] Public Class WebMethodAttribute Inherits Attribute [C#] public class WebMethodAttribute : Attribute [C++] public __gc class WebMethodAttribute : public Attribute [JScript] public class WebMethodAttribute extends Attribute
[To be supplied.]
Namespace: System.Web.Services
Assembly: System.Web.Services.dll