다음을 통해 공유


ConfigurationHelperService.ReadConnectionStrings Method

Definition

Returns all the connection strings in the specified configuration that start with the specified prefix.

public:
 System::Configuration::ConnectionStringSettingsCollection ^ ReadConnectionStrings(System::String ^ configFileName, Microsoft::VisualStudio::Shell::Design::Serialization::DocData ^ configDocData, System::String ^ prefix);
public System.Configuration.ConnectionStringSettingsCollection ReadConnectionStrings (string configFileName, Microsoft.VisualStudio.Shell.Design.Serialization.DocData configDocData, string prefix);
member this.ReadConnectionStrings : string * Microsoft.VisualStudio.Shell.Design.Serialization.DocData * string -> System.Configuration.ConnectionStringSettingsCollection
Public Function ReadConnectionStrings (configFileName As String, configDocData As DocData, prefix As String) As ConnectionStringSettingsCollection

Parameters

configFileName
String

The target configuration file.

configDocData
DocData

The DocData for the configuration.

prefix
String

The string to search for.

Returns

The ConnectionStringSettingsCollection of the strings that were found.

Applies to