Share via


Gate.WaitForGateClose Method

2/27/2008

Waits until the gate is closed.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public MustOverride Sub WaitForGateClose ( _
    timeout As Integer _
)
public abstract void WaitForGateClose (
    int timeout
)
public:
virtual void WaitForGateClose (
    int timeout
) abstract
public abstract void WaitForGateClose (
    int timeout
)
public abstract function WaitForGateClose (
    timeout : int
)

Parameters

  • timeout
    Maximum number of milliseconds to wait until the gate is closed before it returns control back to the application. If WaitForever is defined, the method waits as long as needed until the gate is closed or an error occurs.

Remarks

Unless an exception is thrown, this method does not return to the application while the gate is open.

If the CapGateStatus property is false, then the device does not support status reporting, and this method returns immediately.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread-safe. Any instance members are not guaranteed to be thread-safe.

See Also

Reference

Gate Class
Gate Members
Microsoft.PointOfService Namespace