TransactionOption Enumeration

 

Specifies the automatic transaction type requested by the component.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

[<SerializableAttribute>]
type TransactionOption

Member nameDescription
Disabled

Ignores any transaction in the current context.

NotSupported

Creates the component in a context with no governing transaction.

Required

Shares a transaction, if one exists, and creates a new transaction if necessary.

RequiresNew

Creates the component with a new transaction, regardless of the state of the current context.

Supported

Shares a transaction, if one exists.

When using the .NET Installation Tool (Regsvcs.exe), the transaction option for a ServicedComponent defaults to Disabled.

The following code example demonstrates the use of the TransactionOption type.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: