AppInstance.RetrieveAppDatabaseConnectionString 方法
Retrieves the connection string for an app database.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Shared Function RetrieveAppDatabaseConnectionString ( _
context As ClientRuntimeContext _
) As ClientResult(Of String)
用法
Dim context As ClientRuntimeContext
Dim returnValue As ClientResult(Of String)
returnValue = AppInstance.RetrieveAppDatabaseConnectionString(context)
public static ClientResult<string> RetrieveAppDatabaseConnectionString(
ClientRuntimeContext context
)
参数
context
类型:Microsoft.SharePoint.Client.ClientRuntimeContextThe current context.
返回值
类型:Microsoft.SharePoint.Client.ClientResult<String>
The connection string if the app has an auto-deployed database, otherwise 空引用(无 在 Visual Basic 中).