Utility.EnrollInstance 方法 (SqlStoreConnection, String, SqlSecureString)
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, _
agentProxyAccount As String, _
agentProxyPassword As SqlSecureString _
) As ManagedInstance
用法
Dim instance As Utility
Dim sqlStoreConnection As SqlStoreConnection
Dim agentProxyAccount As String
Dim agentProxyPassword As SqlSecureString
Dim returnValue As ManagedInstance
returnValue = instance.EnrollInstance(sqlStoreConnection, _
agentProxyAccount, agentProxyPassword)
public ManagedInstance EnrollInstance(
SqlStoreConnection sqlStoreConnection,
string agentProxyAccount,
SqlSecureString agentProxyPassword
)
public:
ManagedInstance^ EnrollInstance(
SqlStoreConnection^ sqlStoreConnection,
String^ agentProxyAccount,
SqlSecureString^ agentProxyPassword
)
member EnrollInstance :
sqlStoreConnection:SqlStoreConnection *
agentProxyAccount:string *
agentProxyPassword:SqlSecureString -> ManagedInstance
public function EnrollInstance(
sqlStoreConnection : SqlStoreConnection,
agentProxyAccount : String,
agentProxyPassword : SqlSecureString
) : ManagedInstance
参数
- sqlStoreConnection
类型:Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection
A SqlStoreConnection object.
- agentProxyAccount
类型:System.String
A string value that specifies the agent proxy account.
- agentProxyPassword
类型:SqlSecureString
A SqlSecureString object that contains the password.
返回值
类型:Microsoft.SqlServer.Management.Utility.ManagedInstance
A ManagedInstance object.