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)

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.

Security

LinkDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.

InheritanceDemand
for full trust for inheritors. This member cannot be inherited by partially trusted code.

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.

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);
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.

Security

LinkDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.

InheritanceDemand
for full trust for inheritors. This member cannot be inherited by partially trusted code.

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.

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.

Security

LinkDemand
for full trust for the immediate caller. This member cannot be used by partially trusted code.

InheritanceDemand
for full trust for inheritors. This member cannot be inherited by partially trusted code.

Applies to