ConfigurationHelperService.WriteConnectionStrings Method

Definition

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)

Parameters

configFileName
String

The target configuration file.

configDocData
DocData

The working DocData.

groupPrefix
String

The section of the file where the connectionStrings should be written.

Applies to