本文整理汇总了VB.NET中System.EnterpriseServices.TransactionOption枚举的典型用法代码示例。如果您正苦于以下问题:VB.NET TransactionOption枚举的具体用法?VB.NET TransactionOption怎么用?VB.NET TransactionOption使用的例子?那么恭喜您, 这里精选的枚举代码示例或许可以为您提供帮助。
在下文中一共展示了TransactionOption枚举的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: TransactionAttribute_TransactionDisabled
' 导入命名空间
Imports System.EnterpriseServices
Imports System.Reflection
' References:
' System.EnterpriseServices
' An instance of this class will not participate in transactions, but can
' share its caller's context even if its caller is configured as
' NotSupported, Supported, Required, or RequiresNew.
<Transaction(TransactionOption.Disabled)> _
Public Class TransactionAttribute_TransactionDisabled
Inherits ServicedComponent
End Class
' An instance of this class will not participate in transactions, and will
' share its caller's context only if its caller is also configured as
' NotSupported.
<Transaction(TransactionOption.NotSupported)> _
Public Class TransactionAttribute_TransactionNotSupported
Inherits ServicedComponent
End Class
' An instance of this class will participate in its caller's transaction
' if one exists.
<Transaction(TransactionOption.Supported)> _
Public Class TransactionAttribute_TransactionSupported
Inherits ServicedComponent
End Class
' An instance of this class will participate in its caller's transaction
' if one exists. If not, a new transaction will be created for it.
<Transaction(TransactionOption.Required)> _
Public Class TransactionAttribute_TransactionRequired
Inherits ServicedComponent
End Class
' A new transaction will always be created for an instance of this class.
<Transaction(TransactionOption.RequiresNew)> _
Public Class TransactionAttribute_TransactionRequiresNew
Inherits ServicedComponent
End Class