ResXResourceReader.FromFileContents Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file.
FromFileContents(String) |
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file. |
FromFileContents(String, ITypeResolutionService) |
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file, and to use an ITypeResolutionService object to resolve type names specified in a resource. |
FromFileContents(String, AssemblyName[]) |
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file, and to use an array of AssemblyName objects to resolve type names specified in a resource. |
- Source:
- ResXResourceReader.cs
- Source:
- ResXResourceReader.cs
- Source:
- ResXResourceReader.cs
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file.
public:
static System::Resources::ResXResourceReader ^ FromFileContents(System::String ^ fileContents);
public static System.Resources.ResXResourceReader FromFileContents (string fileContents);
static member FromFileContents : string -> System.Resources.ResXResourceReader
Public Shared Function FromFileContents (fileContents As String) As ResXResourceReader
Parameters
- fileContents
- String
A string containing XML resource-formatted information.
Returns
An object that reads resources from the fileContents
string.
Applies to
.NET Framework 4.8.1 og andre versjoner
Produkt | Versjoner |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- ResXResourceReader.cs
- Source:
- ResXResourceReader.cs
- Source:
- ResXResourceReader.cs
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file, and to use an ITypeResolutionService object to resolve type names specified in a resource.
public:
static System::Resources::ResXResourceReader ^ FromFileContents(System::String ^ fileContents, System::ComponentModel::Design::ITypeResolutionService ^ typeResolver);
public static System.Resources.ResXResourceReader FromFileContents (string fileContents, System.ComponentModel.Design.ITypeResolutionService typeResolver);
public static System.Resources.ResXResourceReader FromFileContents (string fileContents, System.ComponentModel.Design.ITypeResolutionService? typeResolver);
static member FromFileContents : string * System.ComponentModel.Design.ITypeResolutionService -> System.Resources.ResXResourceReader
Public Shared Function FromFileContents (fileContents As String, typeResolver As ITypeResolutionService) As ResXResourceReader
Parameters
- fileContents
- String
A string containing XML resource-formatted information.
- typeResolver
- ITypeResolutionService
An object that resolves type names specified in a resource.
Returns
An object that reads resources from the fileContents
string.
Applies to
.NET Framework 4.8.1 og andre versjoner
Produkt | Versjoner |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- ResXResourceReader.cs
- Source:
- ResXResourceReader.cs
- Source:
- ResXResourceReader.cs
Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file, and to use an array of AssemblyName objects to resolve type names specified in a resource.
public:
static System::Resources::ResXResourceReader ^ FromFileContents(System::String ^ fileContents, cli::array <System::Reflection::AssemblyName ^> ^ assemblyNames);
public static System.Resources.ResXResourceReader FromFileContents (string fileContents, System.Reflection.AssemblyName[] assemblyNames);
static member FromFileContents : string * System.Reflection.AssemblyName[] -> System.Resources.ResXResourceReader
Public Shared Function FromFileContents (fileContents As String, assemblyNames As AssemblyName()) As ResXResourceReader
Parameters
- fileContents
- String
A string whose contents are in the form of an XML resource file.
- assemblyNames
- AssemblyName[]
An array of AssemblyName objects that specifies one or more assemblies. The assemblies are used to resolve a type name in the resource to an actual type.
Returns
An object that reads resources from the fileContents
string.
Applies to
.NET Framework 4.8.1 og andre versjoner
Produkt | Versjoner |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET-tilbakemelding
.NET er et åpen kilde-prosjekt. Velg en kobling for å gi tilbakemelding: