InstAPI.IsNameSQLService(String) Method

Definition

Determines whether a string is a valid SQL service name.

public:
 static bool IsNameSQLService(System::String ^ serviceName);
public static bool IsNameSQLService (string serviceName);
static member IsNameSQLService : string -> bool
Public Shared Function IsNameSQLService (serviceName As String) As Boolean

Parameters

serviceName
String

A pointer to the service name of the SQL instance.

Returns

true if the specified value is a valid SQL service name; otherwise, false.

Applies to