Compartilhar via


SPWebService.DefaultDatabaseInstance Property

Gets or sets the default SQL installation for new content databases associated with this Web service.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Property DefaultDatabaseInstance As SPDatabaseServiceInstance
    Get
    Set
'Usage
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
An SPDatabaseServiceInstance object.

See Also

Reference

SPWebService Class

SPWebService Members

Microsoft.SharePoint.Administration Namespace