Sets the value of the specified property. An exception is thrown if the connection is currently open.