Share via


Utility.EnrollInstance Method (SqlStoreConnection)

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

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

Syntax

'Declaration
Public Function EnrollInstance ( _
    sqlStoreConnection As SqlStoreConnection _
) As ManagedInstance
'Usage
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

Parameters

Return Value

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

See Also

Reference

Utility Class

EnrollInstance Overload

Microsoft.SqlServer.Management.Utility Namespace