Condividi tramite


Metodo CreateUtility (String, SqlStoreConnection, String, )

Creates a Utility object.

Spazio dei nomi  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Sintassi

'Dichiarazione
Public Shared Function CreateUtility ( _
    utilityName As String, _
    sqlStoreConnection As SqlStoreConnection, _
    agentProxyAccount As String, _
    agentProxyPassword As SqlSecureString _
) As Utility
'Utilizzo
Dim utilityName As String
Dim sqlStoreConnection As SqlStoreConnection
Dim agentProxyAccount As String
Dim agentProxyPassword As SqlSecureString
Dim returnValue As Utility

returnValue = Utility.CreateUtility(utilityName, _
    sqlStoreConnection, agentProxyAccount, _
    agentProxyPassword)
public static Utility CreateUtility(
    string utilityName,
    SqlStoreConnection sqlStoreConnection,
    string agentProxyAccount,
    SqlSecureString agentProxyPassword
)
public:
static Utility^ CreateUtility(
    String^ utilityName, 
    SqlStoreConnection^ sqlStoreConnection, 
    String^ agentProxyAccount, 
    SqlSecureString^ agentProxyPassword
)
static member CreateUtility : 
        utilityName:string * 
        sqlStoreConnection:SqlStoreConnection * 
        agentProxyAccount:string * 
        agentProxyPassword:SqlSecureString -> Utility 
public static function CreateUtility(
    utilityName : String, 
    sqlStoreConnection : SqlStoreConnection, 
    agentProxyAccount : String, 
    agentProxyPassword : SqlSecureString
) : Utility

Parametri

  • agentProxyPassword
    Tipo: SqlSecureString
    A SqlSecureString object that contains the password.