Share via


ElectronicValueRW.BeginDetection Method

2/27/2008

Executes the card detection process.

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

Syntax

'Declaration
Public MustOverride Sub BeginDetection ( _
    type As BeginDetectionType, _
    timeout As Integer _
)
public abstract void BeginDetection (
    BeginDetectionType type,
    int timeout
)
public:
virtual void BeginDetection (
    BeginDetectionType type, 
    int timeout
) abstract
public abstract void BeginDetection (
    BeginDetectionType type, 
    int timeout
)
public abstract function BeginDetection (
    type : BeginDetectionType, 
    timeout : int
)

Parameters

  • type
    The type parameter specifies the type of the detected card.
  • timeout
    If a value of WaitForever is specified, the method starts the card detection process and then waits as long as necessary until either the card is detected or an error occurs.

Remarks

Supports the both contact-less and contact IC card devices.

When called, the device starts a card detection process, and starts the card detection in the device. This method is called together with the EndDetection method that ends the card detection process.

If the device cannot be set to the detection process, an error exception is raised such as Timeout. However, the device stays in the detection mode until the EndDetection method is called.

If the timeout parameter value is zero, the method starts the detection mode immediately. If a value is set (in milliseconds), the card detection process waits for this time period if it is necessary.

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

ElectronicValueRW Class
ElectronicValueRW Members
Microsoft.PointOfService Namespace