public int UniFileBlockingStrategy {get; set}
This property gets or sets the UniFile blocking strategy, which is the action taken when a record or file lock blocks a database file operation.
The initial value is inherited from the UniSession.BlockingStrategy property. If you do not specify a value with the UniFileBlockingStrategy property, the value of the UniSession.BlockingStrategy property is used.
Use the UniFileBlockingStrategy property with the UniFileLockStrategy and UniFileReleaseStrategy properties.
int is the token number for the blocking strategy, as follows:
| Token number | Token | Description |
|---|---|---|
| 1 | UniObjectsTokens.WAIT_ON_LOCKED | If the record is locked, wait until it is released (see Note). |
2 | UniObjectsTokens.RETURN_ON_LOCKED | Return a status value to indicate the state of the lock. This is the default value. |
If this property fails, it throws a UniFileException.
This property corresponds to the UniObjects BlockingStrategy property.