InstAPI.IsNameAgentService(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 Agent service name.
public:
static bool IsNameAgentService(System::String ^ serviceName);
public static bool IsNameAgentService (string serviceName);
static member IsNameAgentService : string -> bool
Public Shared Function IsNameAgentService (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 Agent service name; otherwise, false
.