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.
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.
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
It runs with the scope of a transaction
Example: [WebMethod (Transactionoption = Transactionoption.Supported)
Required:
It indicates that the Web Service requires a transaction.
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.
It indicates that the Web Service requires new transaction.
Example: [WebMethod (Transactionoption = Transactionoption.RequiredNew)
No comments :
Post a Comment