SPAppInstance.RetrieveAppDatabaseConnectionString method
Retrieves the connection string for an app database.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function RetrieveAppDatabaseConnectionString As String
'Usage
Dim returnValue As String
returnValue = SPAppInstance.RetrieveAppDatabaseConnectionString()
public static string RetrieveAppDatabaseConnectionString()
Return value
Type: System.String
The connection string if the app has an auto-deployed database, otherwise a null reference (Nothing in Visual Basic).