AppInstance.RetrieveAppDatabaseConnectionString method

Retrieves the connection string for an app database.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Shared Function RetrieveAppDatabaseConnectionString ( _
    context As ClientRuntimeContext _
) As ClientResult(Of String)
'Usage
Dim context As ClientRuntimeContext
Dim returnValue As ClientResult(Of String)

returnValue = AppInstance.RetrieveAppDatabaseConnectionString(context)
public static ClientResult<string> RetrieveAppDatabaseConnectionString(
    ClientRuntimeContext context
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.ClientResult<String>
The connection string if the app has an auto-deployed database, otherwise a null reference (Nothing in Visual Basic).

See also

Reference

AppInstance class

AppInstance members

Microsoft.SharePoint.Client namespace