Méthode Utility.EnrollInstance (SqlStoreConnection)
Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.
Espace de noms : Microsoft.SqlServer.Management.Utility
Assembly : Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Syntaxe
'Déclaration
Public Function EnrollInstance ( _
sqlStoreConnection As SqlStoreConnection _
) As ManagedInstance
'Utilisation
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
Paramètres
- sqlStoreConnection
Type : Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection
A SqlStoreConnection object.
Valeur de retour
Type : Microsoft.SqlServer.Management.Utility.ManagedInstance
A ManagedInstance object.