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
'用途
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.
- 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.
See Also
Reference
ConfigurationHelperService Class