RemoveDriverContent Configuration Manager 中的 Windows Management Instrumentation (WMI) 類別方法會從驅動程式套件中移除指定的驅動程式。
下列語法是從受控物件格式 (MOF) 程式代碼中簡化,並定義方法。
語法
SInt32 RemoveDriverContent(
UInt32 ContentIDs[],
Boolean bRefreshDPs
);
參數
ContentIDs 數據類型: UInt32 陣列
限定符:[in]
要從驅動程式套件中移除之驅動程式內容的標識碼。
bRefreshDPs 資料類型: Boolean
限定符:[in, optional]
true根據預設,將套件變更復寫至發佈點。
傳回值
數據 SInt32 類型,為 0 表示成功或非零表示失敗。
如需處理傳回錯誤的相關信息,請參閱關於 Configuration Manager 錯誤。
需求
運行時間需求
如需詳細資訊,請參閱 Configuration Manager 伺服器運行時間需求。
開發需求
如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。
另請參閱
SMS_DriverPackage類別中 ValidateNewPackageSource 方法類別中,SMS_DriverPackage RebuildPackage 方法類別SMS_DriverPackage Server WMI 類別 AddDriverContent 方法SMS_DriverPackage