InstAPI.IsNameSQLService(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.