CultureAndRegionInfoBuilder::CreateFromLdml Method
Reconstitutes a CultureAndRegionInfoBuilder object from a specified XML file that contains a representation of the object.
Assembly: sysglobl (in sysglobl.dll)
Parameters
- xmlFileName
- Type: System::String
A file name that contains the XML representation of a CultureAndRegionInfoBuilder object.
Return Value
Type: System.Globalization::CultureAndRegionInfoBuilderA new CultureAndRegionInfoBuilder object that is equivalent to the information stored in the xmlFileName parameter.
| Exception | Condition |
|---|---|
| ArgumentNullException | xmlFileName is nullptr. |
| ArgumentException | xmlFileName is an empty string (""), or invalid file or path name. |
| XmlException | The data in xmlFileName is not in valid XML format. -or- An I/O error occurred while accessing xmlFileName. |
| XmlSchemaValidationException | The data in xmlFileName is not in valid LDML format. |
The xmlFileName parameter specifies a file name that contains the XML representation of a CultureAndRegionInfoBuilder object. The format of the XML file is called Locale Data Markup Language (LDML) version 1.1. A new CultureAndRegionInfoBuilder object is created and initialized with the data in xmlFileName.
The Save method performs the reverse operation of the CreateFromLdml method.
For more information about the LDML standard, see Unicode Technical Standard #35, "Locale Data Markup Language (LDML)," at the Unicode home site.
- 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.