|Download Help (Windows Only)|
The IMessageBasedSession type exposes the following members.
|AssertTrigger||Asserts a software or hardware trigger.|
Overloaded. Initiates an asynchronous read from a device.
Overloaded. Initiates an asynchronous write with ASCII-encoded string data to a device.
|Clear||Clears a device.|
|DisableEvent||Disables notification of the specified event type on the specified event-handling mechanism.|
|DiscardEvent||Discards event occurrences for the specified event type on the queuing mechanism for a session.|
|EnableEvent||Enables notification of an event.|
|EndReadByteArray||Handles the end of an asynchronous read and returns the read byte array.|
|EndReadString||Handles the end of an asynchronous read and returns the ASCII-encoded read string.|
|EndWrite||Handles the end of an asynchronous write.|
|GetService||Gets the service object of the specified type. (Inherited from IServiceProvider.)|
Overloaded. Performs a synchronous write of byte array data, followed by a synchronous read.
Overloaded. Synchronously reads byte array data from a device or interface.
|ReadStatusByte||Reads the status byte of a service request.|
Overloaded. Synchronously reads ASCII-encoded string data from a device or interface.
Overloaded. Synchronously reads data and stores the transferred data in a file.
Overloaded. Aborts all in-progress asynchronous read and write operations.
Overloaded. Waits infinitely long for an occurrence of the specified event for a session.
Overloaded. Synchronously writes an array of bytes to the device or interface.
Overloaded. Gets data from a file and synchronously writes it to the device or interface.
|DefaultBufferSize||Gets or sets the default size of read or write buffers when it is not explicitly defined as a parameter on read or write operations.|
|IOProtocol||Gets or sets the I/O protocol to use for the current hardware interface.|
|ReadToFileAppends||Get or sets a value indicating whether the ReadToFile method overwrites or appends data when opening a file.|
|SendEndEnabled||Gets or sets a value indicating whether to assert END during the transfer of the last byte in the buffer.|
|TerminationCharacter||Gets or sets the termination character.|
|TerminationCharacterEnabled||Gets or sets a value indicating whether the read operation terminates when a termination character is received.|
|ServiceRequest||Occurs when the device associated with the session receives a service request.|