AppInstance.RetrieveAppDatabaseConnectionString 方法
擷取應用程式資料庫的連線字串。
命名空間: 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.ClientRuntimeContext目前的內容。
傳回值
類型:Microsoft.SharePoint.Client.ClientResult<String>
如果應用程式部署自動的資料庫,否則null 參考 (未執行任何動作 於 Visual Basic 中)連接字串。