共用方式為


類別SMS_Application中的 SetIsExpired 方法

Configuration Manager SetIsExpired 中的 Windows Management Instrumentation (WMI) 類別方法會設定此應用程式的過期狀態。

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

語法

sint32 SetIsExpired (  
     boolean Expired  
);  

參數

Expired
資料類型:Boolean

限定詞:[in]

true 表示將狀態設定為已過期,否則 false 為 。 預設值為 true

傳回值

資料 SInt32 類型,為 0 表示成功或非零表示失敗。

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

需求

執行時間需求

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

開發需求

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

另請參閱

SMS_Application伺服器 WMI 類別