ConfigurationHelperService.WriteConnectionStrings Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the connection strings to the specified configuration file after deleting any existing connection strings with the specified prefix.
public:
void WriteConnectionStrings(System::String ^ configFileName, Microsoft::VisualStudio::Shell::Design::Serialization::DocData ^ configDocData, System::String ^ groupPrefix, System::Configuration::ConnectionStringSettingsCollection ^ connectionStrings);
public void WriteConnectionStrings (string configFileName, Microsoft.VisualStudio.Shell.Design.Serialization.DocData configDocData, string groupPrefix, System.Configuration.ConnectionStringSettingsCollection connectionStrings);
member this.WriteConnectionStrings : string * Microsoft.VisualStudio.Shell.Design.Serialization.DocData * string * System.Configuration.ConnectionStringSettingsCollection -> unit
Public Sub WriteConnectionStrings (configFileName As String, configDocData As DocData, groupPrefix As String, connectionStrings As ConnectionStringSettingsCollection)
- configFileName
- String
The target configuration file.
- groupPrefix
- String
The section of the file where the connectionStrings
should be written.
- connectionStrings
- ConnectionStringSettingsCollection