다음을 통해 공유


EnrollInstance 메서드 (SqlStoreConnection, String, )

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

매개 변수

  • agentProxyPassword
    유형: SqlSecureString
    A SqlSecureString object that contains the password.