SCCMWebService..::..GetComputerDefaultLanguage Method
Gets the computers default language.
Namespace:
SCCMWebServiceAssembly: 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
Exception | Condition |
---|---|
Exception | computerName must not be empty! or Unable to get DNS host name for computer + computerName + ! or WMIPing() for computer + computerName + returned error code + WMIPingResult + ! |