The BluetoothPrinterConnection type exposes the following members.

Constructors

  NameDescription
BluetoothPrinterConnectionOverloaded.

Methods

  NameDescription
BytesAvailable
Provides implementation for BytesAvailable()()().
Returns an estimate of the number of bytes that can be read from the Bluetooth(R) connection without blocking.
Close
Provides implementation for Close()()().
Closes the Bluetooth(R) connection.
GetFriendlyName
Returns the friendly name of the Bluetooth(R) connection. The friendly name is obtained from the printer when this connection is opened. If the friendly name changes on the printer, it will not be refreshed until the connection is closed and reopened.
GetMacAddress
Returns the MAC address which was passed into the constructor. The MAC address is a hexadecimal string with no separators between the octets. (e.g. 0011BBDD55FF)
GetMaxTimeoutForRead
Provides implementation for GetMaxTimeoutForRead()()().
Returns the maximum time, in milliseconds, to wait for any data to be received.
GetTimeToWaitForMoreData
Provides implementation for GetTimeToWaitForMoreData()()().
Returns the maximum time, in milliseconds, to wait in between reads after the initial read.
IsConnected
Provides implementation for IsConnected()()().
Returns true if the Bluetooth(R) connection is open.
Open
Provides implementation for Open()()().
Opens a Bluetooth(R) connection as specified in the constructor.
Read
Provides implementation for Read()()().
Reads all the available data from the Bluetooth(R) connection.
ToString
Returns Bluetooth:[MAC Address]:[Friendly Name].
(Overrides Object..::.ToString()()().)
WaitForData
Provides implementation for WaitForData(Int32).
Causes the currently executing thread to sleep until BytesAvailable() > 0, or for a maximum of maxTimeout milliseconds.
WriteOverloaded.

See Also