Share via


TransferDatabaseTask.Method Property

Gets or sets a value from the TransferMethod enumeration indicating whether to use Online or Offline transfer method.

Namespace:  Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask
Assembly:  Microsoft.SqlServer.TransferDatabasesTask (in Microsoft.SqlServer.TransferDatabasesTask.dll)

Syntax

'Declaration
Public Property Method As TransferMethod 
    Get 
    Set
'Usage
Dim instance As TransferDatabaseTask 
Dim value As TransferMethod 

value = instance.Method

instance.Method = value
public TransferMethod Method { get; set; }
public:
virtual property TransferMethod Method {
    TransferMethod get () sealed;
    void set (TransferMethod value) sealed;
}
abstract Method : TransferMethod with get, set 
override Method : TransferMethod with get, set
final function get Method () : TransferMethod 
final function set Method (value : TransferMethod)

Property Value

Type: Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask.TransferMethod
A value from the TransferMethod enumeration.

Implements

ITransferDatabaseTask.Method

Remarks

When using the DatabaseOnline method, the user needs to be either sysadmin or dbo on the source server.

See Also

Reference

TransferDatabaseTask Class

Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask Namespace