共用方式為


Utility.CreateUtility 方法 (String, SqlStoreConnection, String, SqlSecureString)

Creates a Utility object.

命名空間:  Microsoft.SqlServer.Management.Utility
組件:  Microsoft.SqlServer.Management.Utility (在 Microsoft.SqlServer.Management.Utility.dll 中)

語法

'宣告
Public Shared Function CreateUtility ( _
    utilityName As String, _
    sqlStoreConnection As SqlStoreConnection, _
    agentProxyAccount As String, _
    agentProxyPassword As SqlSecureString _
) As Utility
'用途
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

參數

  • utilityName
    型別:System.String
    A string value that specifies the name of the utility.
  • 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.Utility
A Utility object.

請參閱

參考

Utility 類別

CreateUtility 多載

Microsoft.SqlServer.Management.Utility 命名空間