This documentation is archived and is not being maintained.

CultureAndRegionInfoBuilder::Save Method

Writes an XML representation of the current CultureAndRegionInfoBuilder object to the specified file.

Namespace:  System.Globalization
Assembly:  sysglobl (in sysglobl.dll)

public:
void Save(
	String^ filename
)

Parameters

filename
Type: System::String
The name of a file to contain the XML representation of this custom culture.

ExceptionCondition
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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Show: