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)
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 [<Generate>] type ResourceSet = ResxFile<"Resources.resx"> printfn "ABC = %s" ResourceSet.Resources.String1 printfn "DEF = %s" ResourceSet.Resources.String2