Partilhar via


Método Connect

Connects to the target server.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)

Sintaxe

'Declaração
Function Connect As Boolean
'Uso
Dim instance As ISfcConnection
Dim returnValue As Boolean

returnValue = instance.Connect()
bool Connect()
bool Connect()
abstract Connect : unit -> bool 
function Connect() : boolean

Valor de retorno

Tipo: System. . :: . .Boolean
True if the connection succeeds; otherwise, false.