InstAPI.IsNameAgentService(String) 方法

定义

确定字符串是否为有效的 SQL 代理服务名称。

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

参数

serviceName
String

一个指向 SQL 实例的实例名称的指针。

返回

如果指定的值为有效的 SQL 代理服务名称,则为 true;否则为 false

适用于