InstAPI.IsNameAgentService(String) Method

Definition

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.

Applies to