Condividi tramite


ContentMigrationSettings.SetConnectionString Method

Sets the connection string to the source database.

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

Syntax

'Declaration
Public Sub SetConnectionString ( _
    connectionString As String _
)
'Usage
Dim instance As ContentMigrationSettings
Dim connectionString As String

instance.SetConnectionString(connectionString)
public void SetConnectionString(
    string connectionString
)

Parameters

  • connectionString
    Type: System.String
    The string that connects to the source database.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The argument is out of range.

ArgumentException

An argument exception.

See Also

Reference

ContentMigrationSettings Class

ContentMigrationSettings Members

Microsoft.SharePoint.Publishing.Administration Namespace