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

適用於