Compartilhar via


Método Utility.EnrollInstance (SqlStoreConnection)

Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (em Microsoft.SqlServer.Management.Utility.dll)

Sintaxe

'Declaração
Public Function EnrollInstance ( _
    sqlStoreConnection As SqlStoreConnection _
) As ManagedInstance
'Uso
Dim instance As Utility 
Dim sqlStoreConnection As SqlStoreConnection 
Dim returnValue As ManagedInstance 

returnValue = instance.EnrollInstance(sqlStoreConnection)
public ManagedInstance EnrollInstance(
    SqlStoreConnection sqlStoreConnection
)
public:
ManagedInstance^ EnrollInstance(
    SqlStoreConnection^ sqlStoreConnection
)
member EnrollInstance : 
        sqlStoreConnection:SqlStoreConnection -> ManagedInstance
public function EnrollInstance(
    sqlStoreConnection : SqlStoreConnection
) : ManagedInstance

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Utility.ManagedInstance
A ManagedInstance object.

Consulte também

Referência

Utility Classe

Sobrecarregado EnrollInstance

Namespace Microsoft.SqlServer.Management.Utility