WebMethod Attribute in Asp.Net Web Service.

The WebMethod attribute has six associated properties to document and change the behavior of your web method. They are:


  • Description
  • MessageName
  • EnableSession
  • CacheDuration
  • TransactionOption
  • BufferResponse

 The first two properties are used to document a web method, while the others affect its behavior.