Condividi tramite


SPContentDatabaseCollection.Add Method (String, String, String, String, Int32, Int32, Int32, Boolean)

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

Syntax

'Declaration
Public Function Add ( _
    strDatabaseServer As String, _
    strDatabaseName As String, _
    strDatabaseUsername As String, _
    strDatabasePassword As String, _
    warningSiteCount As Integer, _
    maximumSiteCount As Integer, _
    status As Integer, _
    flushChangeLog As Boolean _
) As SPContentDatabase
'Usage
Dim instance As SPContentDatabaseCollection
Dim strDatabaseServer As String
Dim strDatabaseName As String
Dim strDatabaseUsername As String
Dim strDatabasePassword As String
Dim warningSiteCount As Integer
Dim maximumSiteCount As Integer
Dim status As Integer
Dim flushChangeLog As Boolean
Dim returnValue As SPContentDatabase

returnValue = instance.Add(strDatabaseServer, _
    strDatabaseName, strDatabaseUsername, _
    strDatabasePassword, warningSiteCount, _
    maximumSiteCount, status, flushChangeLog)
public SPContentDatabase Add(
    string strDatabaseServer,
    string strDatabaseName,
    string strDatabaseUsername,
    string strDatabasePassword,
    int warningSiteCount,
    int maximumSiteCount,
    int status,
    bool flushChangeLog
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.SPContentDatabase

See Also

Reference

SPContentDatabaseCollection Class

SPContentDatabaseCollection Members

Add Overload

Microsoft.SharePoint.Administration Namespace