SCCMWebService..::..SetHTTPPort Method
Sets the ccm HTTP port.
Namespace:
SCCMWebServiceAssembly: 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 )
Return Value
true if successfull, otherwise false.Exceptions
Exception | Condition |
---|---|
Exception | Computer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or HTTP Port must not be empty! |