Writes all of the configuration file properties to a specified configuration file.

The format written is in standard .Config file format, but this method allows writing out to a custom .Config file.

Syntax:

public virtual bool WriteKeysToConfig( string Filename );
Return: Void
Parameters: Filename
Example:
// *** Overridden constructor
public WebStoreConfig() : base(false)
{
   this.SetEnryption("ConnectionString,MailPassword,
                     MerchantPassword","WebStorePassword");

   // *** Use a custom Config file
   this.ReadKeysFromConfig(@"d:\projects\wwWebStore\MyConfig.config");
}
See also:

Class wwAppConfiguration

Overloads:

public virtual bool WriteKeysToConfig();

Last Updated: 1/28/2007 | Send topic feedback