SPDatabase.GenerateConnectionStringForProvisioning Method
Creates a connection string that is used in provisioning based on a specified connection string.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared Function GenerateConnectionStringForProvisioning ( _
connectionString As SqlConnectionStringBuilder _
) As SqlConnectionStringBuilder
'Usage
Dim connectionString As SqlConnectionStringBuilder
Dim returnValue As SqlConnectionStringBuilder
returnValue = SPDatabase.GenerateConnectionStringForProvisioning(connectionString)
public static SqlConnectionStringBuilder GenerateConnectionStringForProvisioning(
SqlConnectionStringBuilder connectionString
)
Parameters
connectionString
Type: System.Data.SqlClient.SqlConnectionStringBuilderA SqlConnectionStringBuilder object that represents the original connection string.
Return Value
Type: System.Data.SqlClient.SqlConnectionStringBuilder
A SqlConnectionStringBuilder object that represents the new connection string.