Compartir a través de


Utility.CreateUtility Método (String, SqlStoreConnection, String, SqlSecureString)

Creates a Utility object.

Espacio de nombres:  Microsoft.SqlServer.Management.Utility
Ensamblado:  Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)

Sintaxis

'Declaración
Public Shared Function CreateUtility ( _
    utilityName As String, _
    sqlStoreConnection As SqlStoreConnection, _
    agentProxyAccount As String, _
    agentProxyPassword As SqlSecureString _
) As Utility
'Uso
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

Parámetros

  • utilityName
    Tipo: System.String
    A string value that specifies the name of the utility.
  • agentProxyAccount
    Tipo: System.String
    A string value that specifies the agent proxy account.
  • agentProxyPassword
    Tipo: SqlSecureString
    A SqlSecureString object that contains the password.

Valor devuelto

Tipo: Microsoft.SqlServer.Management.Utility.Utility
A Utility object.

Vea también

Referencia

Utility Clase

Sobrecarga de CreateUtility

Espacio de nombres Microsoft.SqlServer.Management.Utility