共用方式為


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

參數

傳回值

型別:Microsoft.SqlServer.Management.Utility.ManagedInstance
A ManagedInstance object.

請參閱

參考

Utility 類別

EnrollInstance 多載

Microsoft.SqlServer.Management.Utility 命名空間