WebMethodAttribute Class
.NET Framework 3.0
Adding this attribute to a method within an XML Web service created using ASP.NET makes the method callable from remote Web clients. This class cannot be inherited.
Namespace: System.Web.Services
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
[AttributeUsageAttribute(AttributeTargets::Method)] public ref class WebMethodAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method) */ public final class WebMethodAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Method) public final class WebMethodAttribute extends Attribute
Not applicable.
Methods within a class that have this attribute set are called XML Web service methods. The method and class must be public and running inside an ASP.NET Web application.
| Topic | Location |
|---|---|
| Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer | Building ASP .NET Web Applications in Visual Studio |
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: