TransactionRequirement.WithRequiresTransaction Method |
Returns a copy of the current TransactionRequirement but with a different value of RequiresTransaction.
Specifically, this method preserves the IsSampled property if the value parameter is true.
Namespace: PostSharp.Patterns.Diagnostics.Transactions
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public TransactionRequirement WithRequiresTransaction( bool value )
Parameters
- value
- Type: System.Boolean