Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.


YOU ARE HERE: HOME Questions What is web method and all its various properties

About Web Method and its Various Properties

View(s): 23863

What is web method and all its various properties?

Answer 1)

Adding [WebMethod()] attribute to a method within an XML Web service created using ASP.NET makes method callable from remote Web clients. This class cannot be inherited.the

By passing followingh properties, we can get additional capability or control over method behaviour.

[WebMethod(Description="Obtains the Server Machine Name", EnableSession=true)]
public string GetMachineName()
return Server.MachineName;





Indicates whether session state is enabled for an XML Web service method.


To overload WebMethod in WebService.


Gets or sets the number of seconds the response should be held in the cache.


A descriptive message describing the XML Web service method.


Indicates the transaction support of an XML Web service method.


When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)

  Asked in:  ValueLabs   Expertise Level:  Intermediate
  Last updated on Sunday, 16 February 2014
2/5 stars (17 vote(s))

Register Login Ask Us Write to Us Help