Skip to content

Commit

Permalink
Add note on "Close" vs "Dispose" to POS API descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
muhsinking committed Mar 3, 2017
1 parent 4a9207f commit aa83632
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void BarcodeScanner.Close()
# Windows.Devices.PointOfService.BarcodeScanner.Close

## -description
Close the barcode scanner session, allowing it to be claimed by another client.
Close the barcode scanner session, allowing it to be claimed by another client. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void Close()
# Windows.Devices.PointOfService.ClaimedBarcodeScanner.Close

## -description
Releases exclusive claim to the barcode scanner.
Releases exclusive claim to the barcode scanner. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -remarks
[Close](../windows.foundation/iclosable_close.md) methods aren't callable through Visual C++ component extensions (C++/CX) on Windows Runtime class instances where the class implemented [IClosable](../windows.foundation/iclosable.md). Instead, Visual C++ component extensions (C++/CX) code for runtime classes should call the destructor or set the last reference to **null**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void ClaimedLineDisplay.Close()
# Windows.Devices.PointOfService.ClaimedLineDisplay.Close

## -description
Close the line display session.
Close the line display session. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void Close()
# Windows.Devices.PointOfService.ClaimedPosPrinter.Close

## -description
Disposes the claimed point-of-service printer object synchronously, releases the exclusive claim on the printer and disables it.
Disposes the claimed point-of-service printer object synchronously, releases the exclusive claim on the printer and disables it. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -remarks
You cannot call [Close](../windows.foundation/iclosable_close.md) methods through Visual C++ component extensions (C++/CX) on Windows Runtime class instances where the class implemented [IClosable](../windows.foundation/iclosable.md). Instead, Visual C++ component extensions (C++/CX) code for runtime classes should call the destructor or set the last reference to **null**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void LineDisplay.Close()
# Windows.Devices.PointOfService.LineDisplay.Close

## -description
Close the line display session, allowing it to be claimed by another client.
Close the line display session, allowing it to be claimed by another client. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void MagneticStripeReader.Close()
# Windows.Devices.PointOfService.MagneticStripeReader.Close

## -description
Close the magnetic stripe reader session.
Close the magnetic stripe reader session. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -parameters

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public void PosPrinter.Close()
# Windows.Devices.PointOfService.PosPrinter.Close

## -description
Close the POS printer session.
Close the POS printer session. For C++ and JavaScript, use Close(). For C# and Visual Basic, use Dispose().

## -parameters

Expand Down

0 comments on commit aa83632

Please sign in to comment.