_XDocument2.Language Property
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.
Gets or sets a form's default language code.
public:
property System::String ^ Language { System::String ^ get(); void set(System::String ^ value); };
public string Language { get; set; }
member this.Language : string with get, set
Public Property Language As String
Property Value
Implements
Examples
In the following example, the Language property of the XDocument object is used to display a form's current language setting in a message box:
thisXDocument.UI.Alert("The current language is: " + thisXDocument.<span class="label">Language</span>);
Remarks
The language settings for an InfoPath form can also be accessed using the LanguageSettings property.
Important: This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.