SCCM WebService API Reference

SCCMWebService..::..SetHTTPPort Method

Sets the ccm HTTP port.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public bool SetHTTPPort(
	string computerName,
	string httpPort
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function SetHTTPPort ( _
	computerName As String, _
	httpPort As String _
) As Boolean
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
bool^ SetHTTPPort(
	String^ computerName, 
	String^ httpPort
)

Parameters

computerName
Type: String
Name of the computer.
httpPort
Type: String
The HTTP port.

Return Value

true if successfull, otherwise false.

Exceptions


ExceptionCondition
ExceptionComputer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or HTTP Port must not be empty!