CyrusBuilt.MonoPi.IO.Serial.Rs232SerialPort.PutString C# (CSharp) Method

PutString() public method

Sends a string to the port.
/// This instance has been disposed and is no longer usable. /// /// The port is closed. ///
public PutString ( String s ) : void
s String /// The string to send to the port. ///
return void
		public void PutString(String s) {
			if (this._isDisposed) {
				throw new ObjectDisposedException("Rs232SerialPort");
			}
			
			if (!this.IsOpen) {
				throw new InvalidOperationException("Cannot send char to a closed port.");
			}
			UnsafeNativeMethods.serialPuts(this._id, s);
		}