Share via


PointCardRW.TracksToRead Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Gets or sets the tracks to read from the point card.

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

Syntax

'Declaration
Public MustOverride Property TracksToRead As PointCardRWTracks
public abstract PointCardRWTracks TracksToRead { get; set; }
public:
virtual property PointCardRWTracks TracksToRead {
    PointCardRWTracks get () abstract;
    void set (PointCardRWTracks value) abstract;
}
/** @property */
public abstract PointCardRWTracks get_TracksToRead ()

/** @property */
public abstract void set_TracksToRead (PointCardRWTracks value)
public abstract function get TracksToRead () : PointCardRWTracks

public abstract function set TracksToRead (value : PointCardRWTracks)

Remarks

It contains a bitwise OR of the constants Track1 through Track6. It can contain only values that the CapTracksToRead property marked as allowed. For example, to read tracks 1, 2, and 3, TracksToRead is set to Track1 | Track2 | Track3.

TracksToRead is typically initialized by the service object to the default track to read for the point card. It should then be kept current by the service object.

When TracksToRead is accessed, it may throw a PosControlException exception with the following ErrorCodes:

Value

Meaning

Busy

This operation cannot be performed because asynchronous output is in progress.

Illegal

An illegal track is defined. The track is not available for writing. Refer to CapTracksToRead.

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

PointCardRW Class
PointCardRW Members
Microsoft.PointOfService Namespace
PointCardRW.CapTracksToRead Property