Utility.EnrollInstance Method (SqlStoreConnection, String, SqlSecureString)

 

Enrolls a Utility object with the connection supplied by sqlStoreConnection parameter.

Namespace:   Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

public ManagedInstance EnrollInstance(
	SqlStoreConnection sqlStoreConnection,
	string agentProxyAccount,
	SqlSecureString agentProxyPassword
)

Parameters

sqlStoreConnection
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection

A SqlStoreConnection object.

agentProxyAccount
Type: System.String

A string value that specifies the agent proxy account.

agentProxyPassword
Type: Microsoft.SqlServer.Common.SqlSecureString

A SqlSecureString object that contains the password.

Return to top
Show: