serialPort1
is most likely an instance of the SerialPort class. You'll have to make one of your own. For instance, you could write the following line of code to create an instance with the settings you want:
var port = new SerialPort("COM4", 9600);
You can find more information about the class here.