IFsrmActionCommand 介面 (fsrm.h)
[此介面支援相容性,但建議使用 FSRM WMI 類別來管理 FSRM 。 請參閱 MSFT_FSRMAction、 MSFT_FSRMFMJAction和 MSFT_FSRMFMJNotificationAction 類別。
用來執行命令或腳本,以回應配額、檔案畫面或檔案管理作業
事件。
若要建立命令動作,請呼叫下列其中一種方法,並將 FsrmActionType_Command 指定為動作類型:
- IFsrmFileManagementJob::CreateNotificationAction
- IFsrmFileScreenBase::CreateAction
- IFsrmQuotaBase::CreateThresholdAction
繼承
IFsrmActionCommand 介面繼承自 IFsrmAction 介面。
方法
IFsrmActionCommand 介面具有這些方法。
IFsrmActionCommand::get_Account 擷取或設定用來執行 ExecutablePath 屬性中指定的可執行程式的系統帳戶。 (取得) |
IFsrmActionCommand::get_Arguments 擷取或設定自變數,以傳遞至ExecutablePath屬性中指定的可執行程式。 (取得) |
IFsrmActionCommand::get_ExecutablePath 擷取或設定要執行之可執行程式或腳本的完整路徑。 (取得) |
IFsrmActionCommand::get_KillTimeOut 擷取或設定伺服器在終止執行ExecutablePath屬性中指定的可執行程序的進程之前,等候的分鐘數。 (取得) |
IFsrmActionCommand::get_LogResult 擷取或設定值,判斷 FSRM 是否記錄包含可執行程式傳回碼的應用程式事件。 (取得) |
IFsrmActionCommand::get_MonitorCommand 擷取或設定值,判斷 FSRM 是否會監視 ExecutablePath 屬性中指定的可執行程式。 (取得) |
IFsrmActionCommand::get_WorkingDirectory 擷取或設定可執行程序執行的工作目錄。 (取得) |
IFsrmActionCommand::p ut_Account 擷取或設定用來執行 ExecutablePath 屬性中指定的可執行程式的系統帳戶。 (Put) |
IFsrmActionCommand::p ut_Arguments 擷取或設定自變數,以傳遞至ExecutablePath屬性中指定的可執行程式。 (Put) |
IFsrmActionCommand::p ut_ExecutablePath 擷取或設定要執行之可執行程式或腳本的完整路徑。 (Put) |
IFsrmActionCommand::p ut_KillTimeOut 擷取或設定伺服器在終止執行ExecutablePath屬性中指定的可執行程序的進程之前,等候的分鐘數。 (Put) |
IFsrmActionCommand::p ut_LogResult 擷取或設定值,判斷 FSRM 是否記錄包含可執行程式傳回碼的應用程式事件。 (Put) |
IFsrmActionCommand::p ut_MonitorCommand 擷取或設定值,判斷 FSRM 是否會監視 ExecutablePath 屬性中指定的可執行程式。 (Put) |
IFsrmActionCommand::p ut_WorkingDirectory 擷取或設定可執行程序執行的工作目錄。 (Put) |
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | 都不支援 |
最低支援的伺服器 | Windows Server 2008 |
目標平台 | Windows |
標頭 | fsrm.h (包括 FsrmPipeline.h、FsrmQuota.h、FsrmReports.h、FsrmScreen.h) |