In Configuration Manager, the GetAdvertisements Windows Management Instrumentation (WMI) class method gets the advertisement IDs that are targeted to the resource.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

SInt32 GetAdvertisements(
	 UInt32 ResourceID,
	 String AdvertisementIDs[]
);

Parameters

ResourceID


Data type: UInt32Qualifiers: [in]Unique ID of the resource.
AdvertisementIDs


Data type: String ArrayQualifiers: [out]Unique IDs of the advertisements.

Return Values

An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.

For information about handling returned errors, see About Configuration Manager Errors.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.