West Wind Application Settings for .NET |
wwAppConfiguration.WriteKeysToConfig
|
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");
}
|
Overloads: