ResxFile Type Provider (F#)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides the types for a .NET resource XML file (.resx file).

Namespace/Module Path: Microsoft.FSharp.Data.TypeProviders

Assembly: FSharp.Data.TypeProviders (in FSharp.Data.TypeProviders.dll)

type ResxFile<File : string>

Static Type Parameters

Type Parameter


File : string

The path to a .resx file that contains the resources.


The generated types are the same as those created when running the tool resgen.exe. The following code demonstrates the use of the ResxFile type provider.

open Microsoft.FSharp.Data.TypeProviders

type ResourceSet =  ResxFile<"Resources.resx">

printfn "ABC = %s" ResourceSet.Resources.String1 
printfn "DEF = %s" ResourceSet.Resources.String2


Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 2.0, 4.0


Not supported.

See Also


Microsoft.FSharp.Data.TypeProviders Namespace (F#)

Resgen.exe (Resource File Generator)