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: StringThe target configuration file.
configDocData
Type: Microsoft.VisualStudio.Shell.Design.Serialization.DocDataThe DocData for the configuration.
prefix
Type: StringThe string to search for.
Return Value
Type: 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.