Share via


FiscalPrinter.VerifyItem Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Compares itemName and its vatId with the values stored in the printer.

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

Syntax

'Declaration
Public MustOverride Sub VerifyItem ( _
    itemName As String, _
    vatId As Integer _
)
public abstract void VerifyItem (
    string itemName,
    int vatId
)
public:
virtual void VerifyItem (
    String^ itemName, 
    int vatId
) abstract
public abstract void VerifyItem (
    String itemName, 
    int vatId
)
public abstract function VerifyItem (
    itemName : String, 
    vatId : int
)

Parameters

  • itemName
    Item to be verified.
  • vatId
    VAT identifier of the item.

Remarks

VerifyItem is supported only if CapHasVatTable is true. VerifyItem can be called only while the printer is in the Item List state.

VerifyItem may cause a PosControlException to be thrown with one of the following ErrorCodes:

Value

Description

Illegal

The printer does not support VAT tables (see the CapHasVatTable property).

ExtendedErrorWrongState

The printer is not in the Item List state.

ExtendedErrorBadItemDescription

The item name is too long or contains a reserved word. (Can be returned only if AsyncMode is false.)

ExtendedErrorBadVat

The vatId parameter is invalid. (Can be returned only if AsyncMode is false.)

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

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
CapHasVatTable
FiscalPrinter.SetVatTable Method