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.
mr-ponna.com

 

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



About Web Method and its Various Properties

View(s): 23864

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.

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

Properties:

Name

Description

EnableSession

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

MessageName

To overload WebMethod in WebService.

CacheDuration

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

Description

A descriptive message describing the XML Web service method.

TransactionOption

Indicates the transaction support of an XML Web service method.

TypeId

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