Export (0) Print
Expand All

CultureAndRegionInfoBuilder.Save Method

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

Parameters

filename
Type: System.String

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

ExceptionCondition
ArgumentNullException

filename is a null reference (Nothing in Visual Basic).

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.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft