SCCM WebService API Reference

SCCMWebService..::..GetAdvertisementInfo Method (String)

Gets the advertisement info from specified computer.

Namespace:  SCCMWebService
Assembly:  SCCMWebService (in SCCMWebService.dll)

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public DataSet GetAdvertisementInfo(
	string computerName
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetAdvertisementInfo ( _
	computerName As String _
) As DataSet
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
DataSet^ GetAdvertisementInfo(
	String^ computerName
)

Parameters

computerName
Type: String
Name of the computer.

Return Value

DataSet: AdvertisementID, AdvertisementName, PackageID, ProgramName, CollectionID, PackageName, PackageVersion, PackageLanguage, PackageManufacturer, CollectionName

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty!