共用方式為


SPWebService.DefaultDatabaseInstance property

取得或設定此 Web 服務相關聯的新內容資料庫的預設 SQL 安裝。

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

Syntax

'宣告
Public Property DefaultDatabaseInstance As SPDatabaseServiceInstance
    Get
    Set
'用途
Dim instance As SPWebService
Dim value As SPDatabaseServiceInstance

value = instance.DefaultDatabaseInstance

instance.DefaultDatabaseInstance = value
public SPDatabaseServiceInstance DefaultDatabaseInstance { get; set; }

Property value

Type: Microsoft.SharePoint.Administration.SPDatabaseServiceInstance
SPDatabaseServiceInstance 物件。

請參閱

參照

SPWebService class

SPWebService members

Microsoft.SharePoint.Administration namespace