類別 SMS_DistributionPoint 中的 SetDPMaintenanceMode 方法

Configuration Manager SetDPMaintenanceMode 中的 WMI 類別方法會在維護模式中設定發佈點。 如需詳細資訊,請參閱 維護模式

下列語法是從受控物件格式 (MOF) 程式碼中簡化,並定義 方法。

語法

uint32 SetDPMaintenanceMode(
    [in] string NALPath,
    [in] uint32 Mode
);

參數

NALPath

資料類型:String

限定 符: [in]

網路抽象層 (發佈點伺服器的 NAL) 路徑。

Mode

資料類型:uint32

限定 符: [in]

1 若要啟用維護模式, 0 則停用

傳回值

表示 uint32 成功的資料類型 0 。 非零 hresult 表示失敗。

如需處理傳回錯誤的詳細資訊,請參閱關於Configuration Manager錯誤

需求

執行時間需求

如需詳細資訊,請參閱Configuration Manager伺服器執行時間需求

開發需求

如需詳細資訊,請參閱Configuration Manager伺服器開發需求

另請參閱

SMS_DistributionPointInfo伺服器 WMI 類別