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
‘선언
Public Function ReadConnectionStrings ( _
configFileName As String, _
configDocData As DocData, _
prefix As String _
) As ConnectionStringSettingsCollection
public ConnectionStringSettingsCollection ReadConnectionStrings(
string configFileName,
DocData configDocData,
string prefix
)
Parameters
- configFileName
Type: System.String
The target configuration file.
- configDocData
Type: Microsoft.VisualStudio.Shell.Design.Serialization.DocData
The DocData for the configuration.
- prefix
Type: System.String
The string to search for.
Return Value
Type: System.Configuration.ConnectionStringSettingsCollection
The ConnectionStringSettingsCollection of the strings that were found.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.