Utility.CreateUtility 方法

定义

创建一个 Utility 对象。

重载

CreateUtility(String, SqlStoreConnection, String, SqlSecureString)

创建一个 Utility 对象。

CreateUtility(String, SqlStoreConnection)

创建一个 Utility 对象。

CreateUtility(String, SqlStoreConnection, String, SqlSecureString)

创建一个 Utility 对象。

public:
 static Microsoft::SqlServer::Management::Utility::Utility ^ CreateUtility(System::String ^ utilityName, Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ sqlStoreConnection, System::String ^ agentProxyAccount, Microsoft::SqlServer::Common::SqlSecureString ^ agentProxyPassword);
public static Microsoft.SqlServer.Management.Utility.Utility CreateUtility (string utilityName, Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection sqlStoreConnection, string agentProxyAccount, Microsoft.SqlServer.Common.SqlSecureString agentProxyPassword);
static member CreateUtility : string * Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection * string * Microsoft.SqlServer.Common.SqlSecureString -> Microsoft.SqlServer.Management.Utility.Utility
Public Shared Function CreateUtility (utilityName As String, sqlStoreConnection As SqlStoreConnection, agentProxyAccount As String, agentProxyPassword As SqlSecureString) As Utility

参数

utilityName
String

一个指定实用工具名称的字符串值。

sqlStoreConnection
SqlStoreConnection

SqlStoreConnection 对象。

agentProxyAccount
String

一个指定代理的代理帐户的字符串值。

agentProxyPassword
Microsoft.SqlServer.Common.SqlSecureString

一个包含密码的 Microsoft.SqlServer.Common.SqlSecureString 对象。

返回

Utility

Utility 对象。

适用于

CreateUtility(String, SqlStoreConnection)

创建一个 Utility 对象。

public:
 static Microsoft::SqlServer::Management::Utility::Utility ^ CreateUtility(System::String ^ utilityName, Microsoft::SqlServer::Management::Sdk::Sfc::SqlStoreConnection ^ sqlStoreConnection);
public static Microsoft.SqlServer.Management.Utility.Utility CreateUtility (string utilityName, Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection sqlStoreConnection);
static member CreateUtility : string * Microsoft.SqlServer.Management.Sdk.Sfc.SqlStoreConnection -> Microsoft.SqlServer.Management.Utility.Utility
Public Shared Function CreateUtility (utilityName As String, sqlStoreConnection As SqlStoreConnection) As Utility

参数

utilityName
String

一个指定实用工具名称的字符串值。

sqlStoreConnection
SqlStoreConnection

SqlStoreConnection 对象。

返回

Utility

Utility 对象。

适用于