共用方式為


類別SMS_Collection中的 FindResourceSite 方法

FindResourceSite Configuration Manager 中的 Windows Management Instrumentation (WMI) 類別方法會取得資源的月臺碼資訊。

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

語法

sint32 FindResourceSite(
        boolean IncludeSubCollections = false,
        string SiteCode[],
        uint32 ResourceNumber[]
);

參數

IncludeSubCollections 資料類型: Boolean

限定符:[in, optional, deprecated]

如果子集合也標示為評估,則為 true。 如果此參數設定為 false,則不會包含子集合。 如果未指定,此值預設為 false。

SiteCode[] 數據類型: String 陣列

限定符:[out]

與資源相關聯之月臺的月臺碼。

ResourceNumber 數據類型: UInt32 陣列

限定符:[out]

Configuration Manager 提供可唯一識別客戶端資源的標識碼。

傳回值

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

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

需求

運行時間需求

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

開發需求

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

另請參閱

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