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实例服务名称的指针。

返回

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

适用于