Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a Transactional Class be Serialized ?

Status
Not open for further replies.

vikaskalra

Technical User
Aug 12, 2002
41
GB
Hi !

I am having a problem in declaring a class which is Transactional as also Serializable

I know if you want to Serialize a class you need to write something like :-

(Syntax in VB.NET)

<Serializable()> _
Public Class DataFetch()

And a Transactionl Class as :-

(Syntax in VB.NET)

<Transaction(TransactionOption.Required)> _
Public Class TxManagement
Inherits System.EnterpriseServices.ServicedComponent

And also Include the respective namespaces.

But what if I have to Serialize a Transactional Class ? Can I serialize it ? If yes can you please give me the Syntax for doing so.

Regards n Thanks,
Vikas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top