InstAPI.IsNameAgentService(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定字符串是否为有效的 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
。