Share via


Utility.CreateUtility Method (String, SqlStoreConnection)

Creates a Utility object.

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
Public Shared Function CreateUtility ( _
    utilityName As String, _
    sqlStoreConnection As SqlStoreConnection _
) As Utility
'Usage
Dim utilityName As String
Dim sqlStoreConnection As SqlStoreConnection
Dim returnValue As Utility

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

Parameters

  • utilityName
    Type: System.String
    A string value that specifies the name of the utility.