Utility.EnrollInstance 方法 (SqlStoreConnection)
Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.
命名空間: Microsoft.SqlServer.Management.Utility
組件: Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)
語法
'宣告
Public Function EnrollInstance ( _
sqlStoreConnection As SqlStoreConnection _
) As ManagedInstance
'用途
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
參數
- sqlStoreConnection
型別:Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection
A SqlStoreConnection object.
傳回值
型別:Microsoft.SqlServer.Management.Utility.ManagedInstance
A ManagedInstance object.