RepositoryTransaction GetOption Method

See Also

This method is used to retrieve various transaction options. The transaction options are:

  1. Whether or not subsequent transactions will execute in non-exclusive write-back mode. Nonexclusive write-back mode allows transactions for other Repository instances to execute concurrently, and caches updates for this Repository instance until a transaction is committed.

  2. Whether or not subsequent transactions will execute in exclusive write-back mode. Exclusive write-back mode does not allow transactions for other Repository instances to execute concurrently, and caches updates for this Repository instance until a transaction is committed.

  3. Whether or not subsequent transactions will execute in exclusive write-through mode. Exclusive write-through mode does not allow transactions for other Repository instances to execute concurrently, and writes updates for this Repository instance to persistent storage as soon as possible.

  4. What the maximum time is that subsequent transactions will wait to obtain a lock.

  5. What the maximum time is that subsequent transactions will wait to begin a transaction

  6. What the maximum time is to wait for an executing query.

  7. Whether changes to the Repository database are allowed.

The first three of these options are mutually exclusive; only one of them can be set at a time. The last option set is the option that is in effect. The fourth through the seventh options are independent of the first three, and each other.

Syntax

variable  =  object.GetOption(whichOption)

The GetOption property syntax has the following parts.

Part Description
object The RepositoryTransaction object for the currently open Repository instance.
whichOption This parameter specifies which option is to be retrieved or set. For a list of valid values and their meanings, see the TransactionFlags Enumeration.
variable A variable declared as a Variant. Receives the value of the specified option.

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.