Writes the configuration file to the specified stream.
Stream to write to.
stream is null (Nothing in Visual Basic).