CultureAndRegionInfoBuilder::Save Method
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 nullptr. |
| 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 current CultureAndRegionInfoBuilder object is written to 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 more information about the LDML standard, see Unicode Technical Standard #35, "Locale Data Markup Language (LDML)," at the Unicode home site.
The following code example demonstrates the Save and CreateFromLdml methods.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.