CultureAndRegionInfoBuilder.Save Method (String)


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

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

member Save : 
        filename:string -> unit


Type: System.String

The name of a file to contain the XML representation of this custom culture.

Exception Condition

filename is null.


filename is an empty string ("").


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.

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

.NET Framework
Available since 2.0
Return to top