ConfigurationHelperService::WriteConnectionStrings Method (String^, DocData^, String^, ConnectionStringSettingsCollection^)
Visual Studio 2015
Writes the connection strings to the specified configuration file after deleting any existing connection strings with the specified prefix.
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
public: void WriteConnectionStrings( String^ configFileName, DocData^ configDocData, String^ groupPrefix, ConnectionStringSettingsCollection^ connectionStrings )
Parameters
- configFileName
-
Type:
System::String^
The target configuration file.
- configDocData
-
Type:
Microsoft.VisualStudio.Shell.Design.Serialization::DocData^
The working DocData.
- groupPrefix
-
Type:
System::String^
The section of the file where the connectionStrings should be written.
- connectionStrings
- Type: System.Configuration::ConnectionStringSettingsCollection^
This first clears all existing strings in the groupPrefix section.
Show: