This method is used to set various transaction options.
Call object.SetOption(whichOption, optionValue)
The SetOption method syntax has the following parts.
| Part | Description |
|---|---|
| object | An object expression that evaluates to a RepositoryTransaction object for the open Repository instance. |
| whichOption | A parameter that specifies which option to set. For more information about flag values and descriptions, see TransactionFlags Enumeration. |
| optionValue | The new value for the option. |
After you set an option, you can retrieve it using the GetOption method.