SCCM WebService API Reference

SCCMWebService..::..GetComputerDefaultLanguage Method

Gets the computers default language.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public string GetComputerDefaultLanguage(
	string computername
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function GetComputerDefaultLanguage ( _
	computername As String _
) As String
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
String^ GetComputerDefaultLanguage(
	String^ computername
)

Parameters

computername
Type: String
The computerName.

Return Value

The default language as String.

Exceptions


ExceptionCondition
ExceptioncomputerName must not be empty! or Unable to get DNS host name for computer + computerName + ! or WMIPing() for computer + computerName + returned error code + WMIPingResult + !