xInfo.language Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
language(String) | |
language() |
Gets or sets the language for the GUI. |
language(String)
public:
virtual System::String ^ language(System::String ^ _languageCode);
public virtual string language (string _languageCode);
abstract member language : string -> string
override this.language : string -> string
Public Overridable Function language (_languageCode As String) As String
Parameters
- _languageCode
- String
A string that contains the language code to set.
Returns
Applies to
language()
Gets or sets the language for the GUI.
public:
virtual System::String ^ language();
public virtual string language ();
abstract member language : unit -> string
override this.language : unit -> string
Public Overridable Function language () As String
Returns
A string that contains the current language code.
Remarks
To set the language for the documentation, use the xInfo.documentationLanguage Method. To set the GUI language for a particular session, use the xSession.interfaceLanguage Method.
The following example prints the code for the language that is currently set. For example, if the interface was in US English, it would print "en-us".
{
print infolog.language();
pause;
}