Pages

Men

rh

6/23/2012

What are all Transaction Options for Web Method of Web Service in Asp.Net

Transaction Options:- 
It Enables to patispate as the root element.
It has the following values.
  • Disabled
  • Not Supported
  • Supported
  • Required
  • Required New

Disabled:-
It indicates web service method doe not run with the transaction.
Example: [WebMethod (Transactionoption = Transactionoption.Disabled)

NotSupported:
It indicates the the web service method doe not run with in  the scope of a transaction.
Example: [WebMethod (Transactionoption = Transactionoption.Notsupported)

Supported: 
It runs with the scope of a transaction
Example: [WebMethod (Transactionoption = Transactionoption.Supported)

Required
It indicates that the Web Service requires a transaction.
Example: [WebMethod (Transactionoption = Transactionoption.Required)
Required New:  
It indicates that the Web Service requires new transaction.
Example: [WebMethod (Transactionoption = Transactionoption.RequiredNew)

No comments :

Post a Comment