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 實例服務名稱的指標。
傳回
true若指定的值是有效的 SQL 代理服務名稱;否則,。 false