ResXResourceReader.FromFileContents Method

Definition

Creates a new ResXResourceReader object and initializes it to read a string whose contents are in the form of an XML resource file.

Overloads

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.

FromFileContents(String)

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 (string fileContents);

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

FromFileContents(String, ITypeResolutionService)

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 (string fileContents, System.ComponentModel.Design.ITypeResolutionService typeResolver);
public static System.Resources.ResXResourceReader FromFileContents (string fileContents, System.ComponentModel.Design.ITypeResolutionService? typeResolver);

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

FromFileContents(String, AssemblyName[])

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 (string fileContents, System.Reflection.AssemblyName[] assemblyNames);

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