CultureAndRegionInfoBuilder::Save Method (String^)
Writes an XML representation of the current CultureAndRegionInfoBuilder object to the specified file.
Assembly: sysglobl (in sysglobl.dll)
Parameters
- filename
-
Type:
System::String^
The name of a file to contain the XML representation of this custom culture.
| Exception | Condition |
|---|---|
| ArgumentNullException | filename is null. |
| ArgumentException | filename is an empty string (""). |
| ArgumentOutOfRangeException | The value of a property of a DateTimeFormatInfo, TextInfo, or NumberFormatInfo object contained in the current CultureAndRegionInfoBuilder object is invalid. |
The Save method writes the current CultureAndRegionInfoBuilder object to the file specified by the filename parameter in an XML format called Locale Data Markup Language (LDML) version 1.1. The CreateFromLdml method performs the reverse operation of the Save method.
For information about the format of an LDML file, see the CreateFromLdml method. For information about the LDML standard, see Unicode Technical Standard #35, "Locale Data Markup Language (LDML)" on the Unicode Consortium website.
The following example demonstrates the Save and CreateFromLdml methods.
Available since 2.0