Freigeben über


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
'Usage
Dim instance As ConfigurationHelperService
Dim configFileName As String
Dim configDocData As DocData
Dim prefix As String
Dim returnValue As ConnectionStringSettingsCollection

returnValue = instance.ReadConnectionStrings(configFileName, _
    configDocData, prefix)
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: System.String
    The target configuration file.

Return Value

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

.NET Framework Security

See Also

Reference

ConfigurationHelperService Class

ConfigurationHelperService Members

Microsoft.VisualStudio.Shell.Design.Serialization Namespace