Share via


ConfigurationHelperService.ReadConnectionStrings Method

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

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Function ReadConnectionStrings ( _
    configFileName As String, _
    configDocData As DocData, _
    prefix As String _
) As ConnectionStringSettingsCollection
public ConnectionStringSettingsCollection ReadConnectionStrings(
    string configFileName,
    DocData configDocData,
    string prefix
)
public:
ConnectionStringSettingsCollection^ ReadConnectionStrings(
    String^ configFileName, 
    DocData^ configDocData, 
    String^ prefix
)
member ReadConnectionStrings : 
        configFileName:string * 
        configDocData:DocData * 
        prefix:string -> ConnectionStringSettingsCollection
public function ReadConnectionStrings(
    configFileName : String, 
    configDocData : DocData, 
    prefix : String
) : ConnectionStringSettingsCollection

Parameters

  • configFileName
    Type: String

    The target configuration file.

  • prefix
    Type: String

    The string to search for.

Return Value

Type: ConnectionStringSettingsCollection
The ConnectionStringSettingsCollection of the strings that were found.

.NET Framework Security

See Also

Reference

ConfigurationHelperService Class

Microsoft.VisualStudio.Shell.Design.Serialization Namespace