Share via


HardTotals.ClaimFile(Int32, Int32) Method

Definition

Tries to gain exclusive access to a specific file for use.

public abstract void ClaimFile (int handle, int timeout);
abstract member ClaimFile : int * int -> unit
Public MustOverride Sub ClaimFile (handle As Integer, timeout As Integer)

Parameters

handle
Int32

Handle to the totals file to claim.

timeout
Int32

The time (in milliseconds) to wait for the file to become available.If zero, ClaimFile tries to claim the file, then returns the appropriate status immediately.If WaitForever is specified, ClaimFile waits as long as needed until exclusive access is satisfied.

Applies to