共用方式為


SMS_Collection類別中的 VerifyNoCircularDependencies 方法

在Configuration Manager中, VerifyNoCircularDependencies Windows Management Instrumentation (WMI) 類別方法會採用兩個集合作為引數,並確認如果某個集合是另一個集合的父系,則不會形成任何迴圈相依性。

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

語法

sint32 VerifyNoCircularDependencies(  
        SMS_Collection ref parentCollection,   
        SMS_Collection ref subCollection,   
        boolean Result);  

參數

parentCollection
資料類型:ref:SMS_Collection

限定詞:[in]

父集合 SMS_Collection伺服器 WMI 類別 物件路徑的參考。

subCollection
資料類型:ref:SMS_Collection

限定詞:[in]

子集合 SMS_Collection伺服器 WMI 類別 物件路徑的參考。

Result
資料類型:Boolean

限定詞:[out]

如果沒有迴圈相依性,則為 true;如果有迴圈相依性,則為 false。

傳回值

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

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

需求

執行時間需求

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

開發需求

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

另請參閱

SMS_Collection伺服器 WMI 類別
SMS_Site伺服器 WMI 類別