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
)

参数

返回值

类型:Microsoft.SharePoint.Client.ClientResult<String>
The connection string if the app has an auto-deployed database, otherwise 空引用(无 在 Visual Basic 中).

另请参阅

引用

AppInstance 类

AppInstance 成员

Microsoft.SharePoint.Client 命名空间