Org.Xml.Sax.IParser.SetLocale Method
Allow an application to request a locale for errors and warnings.

Syntax

[Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)V", "GetSetLocale_Ljava_util_Locale_Handler:Org.Xml.Sax.IParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetLocale (Java.Util.Locale locale)

See Also

SAXException
SAXParseException

Parameters

locale
A Java Locale object.

Exceptions

TypeReason
Org.Xml.Sax.SAXExceptionThrows an exception (using the previous or default locale) if the requested locale is not supported.

Remarks

Allow an application to request a locale for errors and warnings.

SAX parsers are not required to provide localisation for errors and warnings; if they cannot support the requested locale, however, they must throw a SAX exception. Applications may not request a locale change in the middle of a parse.

[Android Documentation]

Requirements

Namespace: Org.Xml.Sax
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1