Utility.EnrollInstance 方法

定义

向服务器注册 Utility 对象。

重载

EnrollInstance(SqlStoreConnection, String, SqlSecureString)

使用由 sqlStoreConnection 参数提供的连接注册 Utility 对象。

EnrollInstance(SqlStoreConnection)

使用由 sqlStoreConnection 参数提供的连接注册 Utility 对象。

EnrollInstance(SqlStoreConnection, String, SqlSecureString)

使用由 sqlStoreConnection 参数提供的连接注册 Utility 对象。

public:
 Microsoft::SqlServer::Management::Utility::ManagedInstance ^ EnrollInstance(Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ sqlStoreConnection, System::String ^ agentProxyAccount, Microsoft::SqlServer::Common::SqlSecureString ^ agentProxyPassword);
public Microsoft.SqlServer.Management.Utility.ManagedInstance EnrollInstance (Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection sqlStoreConnection, string agentProxyAccount, Microsoft.SqlServer.Common.SqlSecureString agentProxyPassword);
member this.EnrollInstance : Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection * string * Microsoft.SqlServer.Common.SqlSecureString -> Microsoft.SqlServer.Management.Utility.ManagedInstance
Public Function EnrollInstance (sqlStoreConnection As SqlStoreConnection, agentProxyAccount As String, agentProxyPassword As SqlSecureString) As ManagedInstance

参数

sqlStoreConnection
SqlStoreConnection

SqlStoreConnection 对象。

agentProxyAccount
String

一个指定代理的代理帐户的字符串值。

agentProxyPassword
Microsoft.SqlServer.Common.SqlSecureString

一个包含密码的 Microsoft.SqlServer.Common.SqlSecureString 对象。

返回

ManagedInstance

ManagedInstance 对象。

适用于

EnrollInstance(SqlStoreConnection)

使用由 sqlStoreConnection 参数提供的连接注册 Utility 对象。

public:
 Microsoft::SqlServer::Management::Utility::ManagedInstance ^ EnrollInstance(Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ sqlStoreConnection);
public Microsoft.SqlServer.Management.Utility.ManagedInstance EnrollInstance (Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection sqlStoreConnection);
member this.EnrollInstance : Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection -> Microsoft.SqlServer.Management.Utility.ManagedInstance
Public Function EnrollInstance (sqlStoreConnection As SqlStoreConnection) As ManagedInstance

参数

sqlStoreConnection
SqlStoreConnection

SqlStoreConnection 对象。

返回

ManagedInstance

ManagedInstance 对象。

适用于