クラス SMS_Advertisement の GetAdvertisements メソッド

Configuration Manager の GetAdvertisements Windows Management Instrumentation (WMI) クラス メソッドは、コンピューターの提供情報 ID を取得します。

次の構文は、マネージ オブジェクト形式 (MOF) コードから簡素化され、メソッドを定義したものです。

構文

sint32 GetAdvertisements(
     uint32  ResourceID,
     string  AdvertisementIDs[]
);

パラメーター

ResourceID データ型: UInt32

修飾子: [in]

Configuration Manager が指定したリソースの一意の ID。

AdvertisementIDs データ型: String 配列

修飾子: [out]

Configuration Manager によって提供情報に割り当てられる一意の自動生成キーの配列。

戻り値

成功を示す 0 または失敗を示す場合は 0 以外の SInt32 データ型。

返されたエラーの処理の詳細については、「Configuration Manager のエラーについて」を参照してください。

要件

ランタイム要件

詳細については、「Configuration Manager サーバー ランタイム要件」を参照してください。

開発要件

詳細については、「Configuration Manager サーバー開発の要件」を参照してください。

関連項目

SMS_Advertisement サーバー WMI クラス