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 );
- Data type: UInt32Qualifiers: [in]Unique ID of the resource.
- Data type: String ArrayQualifiers: [out]Unique IDs of the advertisements.
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.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
ReferenceSMS_Advertisement Server WMI Class
Send comments about this topic to Microsoft.