public int UniFileLockStrategy {get; set}
This property gets or sets the lock strategy, which controls
the manner in which locks are set during Read operations
on a file.
The initial value is inherited from the UniSession.LockStrategy property. If you do not specify a value with the UniFileLockStrategy property, the value of the UniSession.LockStrategy property is used.
int is the token number
for the lock strategy, as follows:
| Token number | Token | Description |
|---|---|---|
| 0 | UniObjectsTokens.NO_LOCKS | No locking. This is the default value. |
| 1 | UniObjectsTokens.EXCLUSIVE_READ | Sets an exclusive update lock (READU) for all file access. |
| 2 | UniObjectsTokens.SHARED_READ | Sets a shared read lock (READL) for all file access. |
If this property fails, it throws a UniFileException.
Use this property with the UniFileBlockingStrategy and UniFileReleaseStrategy properties.