ClientInfo.OSLocale Property
Gets or sets the operating system language of the client as an RFC1766-style string.
Namespace: Microsoft.UpdateServices.ClientServicing
Assembly: Microsoft.UpdateServices.ClientServicing (in Microsoft.UpdateServices.ClientServicing.dll)
Usage
Syntax
'Declaration
Public Property OSLocale As String
public string OSLocale { get; set; }
public:
property String^ OSLocale {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_OSLocale ()
/** @property */
public void set_OSLocale (String value)
public function get OSLocale () : String
public function set OSLocale (value : String)
Property Value
The operating system language of the client as an RFC1766-style string.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | The value is null. |
ArgumentOutOfRangeException | The value is too long (greater than 10 characters). |
ArgumentException | The value contains illegal characters. |
Remarks
The maximum length of this string is 10 characters.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Target Platforms
Windows Server 2008, Windows Server 2003, Windows Server 2008 R2
See Also
Reference
ClientInfo Class
ClientInfo Members
Microsoft.UpdateServices.ClientServicing Namespace