次の方法で共有


SetServiceState メソッド (WMI MSReportServer_ConfigurationSetting クラス)

レポート サーバーの Windows サービスおよび Web サービスを開始または停止します。

構文

Public Sub SetServiceState(EnableWindowsService as Boolean,_
    EnableWebService as Boolean, ByRef HRESULT as Int32)
public void SetSecureConnectionLevel(Boolean EnableWindowsService,
    Boolean EnableWebService, out sint32 HRESULT);

パラメータ

  • EnableWindowsService
    Windows サービスの必要な状態を示す Boolean 値。値が true の場合は Reporting Services Windows サービスを開始し、値が false の場合は Windows サービスを停止します。
  • EnableWebService
    Reporting Services Web サービスの必要な状態を示す Boolean 値。値が true の場合は Web サービスを開始し、値が false の場合は Web サービスを停止します。
  • HRESULT
    [out] 呼び出しの成功または失敗を示す値。

戻り値

メソッド呼び出しの成功または失敗を示す HRESULT を返します。値 0 は、メソッド呼び出しが成功したことを示します。0 以外の値は、エラーが発生したことを示します。

要件

名前空間 :root\Microsoft\SqlServer\ReportServer\v9\Admin

プラットフォーム : Windows Server 2003 Datacenter Edition、Windows Server 2003 Enterprise Edition、Windows Server 2003 Standard Edition、Windows Vista、Windows XP Professional Service Pack 2 (SP2) または Service Pack 1 (SP1)、および Windows 2000 (すべてのバージョン)

参照

関連項目

MSReportServer_ConfigurationSetting メンバ
MSReportServer_ConfigurationSettingForSharePoint メンバ

ヘルプおよび情報

SQL Server 2005 の参考資料の入手