Share via


RFIDScanner.ReadTags Method

2/27/2008

Performs a poll of all the tags within range that meet the parameterized criteria.

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

Syntax

'Declaration
Public MustOverride Sub ReadTags ( _
    cmd As RFIDReadOptions, _
    filterId As Byte(), _
    filterMask As Byte(), _
    start As Integer, _
    length As Integer, _
    timeout As Integer, _
    password As Byte() _
)
public abstract void ReadTags (
    RFIDReadOptions cmd,
    byte[] filterId,
    byte[] filterMask,
    int start,
    int length,
    int timeout,
    byte[] password
)
public:
virtual void ReadTags (
    RFIDReadOptions cmd, 
    array<unsigned char>^ filterId, 
    array<unsigned char>^ filterMask, 
    int start, 
    int length, 
    int timeout, 
    array<unsigned char>^ password
) abstract
public abstract void ReadTags (
    RFIDReadOptions cmd, 
    byte[] filterId, 
    byte[] filterMask, 
    int start, 
    int length, 
    int timeout, 
    byte[] password
)
public abstract function ReadTags (
    cmd : RFIDReadOptions, 
    filterId : byte[], 
    filterMask : byte[], 
    start : int, 
    length : int, 
    timeout : int, 
    password : byte[]
)

Parameters

  • cmd
    Command parameters from
  • filterId
    Holds a bit pattern to be AND-ed with filterMask to determine which tag(s) to read.
  • filterMask
    Holds a value which is used to mask the filterID. If the bitwise AND matches the bitwise AND of a tagId and the filterMask, the tagId will be returned. To get all tags in the field, pass in a filterMask of 0.
  • start
    Indicates the zero-based position within the tags UserData field to begin reading from. This parameter only applies when cmd is set to PartialUserData or IdAndPartialUserData. Otherwise, it is ignored.
  • length
    Indicates the number of bytes of user data to read starting at the position indicated by the start parameter. This parameter only applies when cmd is set to PartialUserData or IdAndPartialUserData. Otherwise, it is ignored.
  • timeout
    Allowed execution time, in milliseconds, before the method fails and a time-out ErrorEvent is sent to the application. If WaitForever, the service waits as long as needed until either the operation is complete or an error occurs.
  • password
    Authorized key for reader that might be required for this operation; null if not applicable.

Remarks

A DataEvent event or an ErrorEvent event has to be received before another ReadTags method is called.

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

RFIDScanner Class
RFIDScanner Members
Microsoft.PointOfService Namespace