AppInstance.RetrieveAppDatabaseConnectionString - Méthode
Retrieves the connection string for an app database.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Shared Function RetrieveAppDatabaseConnectionString ( _
context As ClientRuntimeContext _
) As ClientResult(Of String)
'Utilisation
Dim context As ClientRuntimeContext
Dim returnValue As ClientResult(Of String)
returnValue = AppInstance.RetrieveAppDatabaseConnectionString(context)
public static ClientResult<string> RetrieveAppDatabaseConnectionString(
ClientRuntimeContext context
)
Paramètres
context
Type : Microsoft.SharePoint.Client.ClientRuntimeContextThe current context.
Valeur renvoyée
Type : Microsoft.SharePoint.Client.ClientResult<String>
The connection string if the app has an auto-deployed database, otherwise une référence Null (Rien dans Visual Basic).