WithRequiresTransaction(bool)
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.
Declaration
public TransactionRequirement WithRequiresTransaction(bool value)Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The new value of RequiresTransaction. |
Returns
| Type | Description |
|---|---|
| TransactionRequirement | A copy of the current TransactionRequirement with the specified value of RequiresTransaction. |