ResXResourceWriter ResXResourceWriter ResXResourceWriter ResXResourceWriter Constructors

Definition

Overloads

ResXResourceWriter(Stream) ResXResourceWriter(Stream) ResXResourceWriter(Stream)

Initializes a new instance of the ResXResourceWriter class that writes the resources to the specified stream object.

ResXResourceWriter(TextWriter) ResXResourceWriter(TextWriter) ResXResourceWriter(TextWriter)

Initializes a new instance of the ResXResourceWriter class that writes to the specified TextWriter object.

ResXResourceWriter(String) ResXResourceWriter(String) ResXResourceWriter(String) ResXResourceWriter(String)

Initializes a new instance of the ResXResourceWriter class that writes the resources to the specified file.

ResXResourceWriter(Stream, Func<Type,String>) ResXResourceWriter(Stream, Func<Type,String>) ResXResourceWriter(Stream, Func<Type,String>)

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified stream object and sets a converter delegate. This delegate enables resource assemblies to be written that target versions of the .NET Framework before the .NET Framework 4 by using qualified assembly names.

ResXResourceWriter(TextWriter, Func<Type,String>) ResXResourceWriter(TextWriter, Func<Type,String>) ResXResourceWriter(TextWriter, Func<Type,String>)

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified TextWriter object and sets a delegate that enables resource assemblies to be written that target versions of the .NET Framework before the .NET Framework 4 by using qualified assembly names.

ResXResourceWriter(String, Func<Type,String>) ResXResourceWriter(String, Func<Type,String>) ResXResourceWriter(String, Func<Type,String>) ResXResourceWriter(String, Func<Type,String>)

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified file and sets a delegate that enables resource assemblies to be written that target versions of the .NET Framework before the .NET Framework 4 by using qualified assembly names.

ResXResourceWriter(Stream) ResXResourceWriter(Stream) ResXResourceWriter(Stream)

Initializes a new instance of the ResXResourceWriter class that writes the resources to the specified stream object.

public:
 ResXResourceWriter(System::IO::Stream ^ stream);
public ResXResourceWriter (System.IO.Stream stream);
new System.Resources.ResXResourceWriter : System.IO.Stream -> System.Resources.ResXResourceWriter

Parameters

stream
Stream Stream Stream Stream

The output stream.

Remarks

Note

The Close method closes the stream you specify as a parameter. To write the resource to the stream without closing the stream, you must use the Generate method.

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.

ResXResourceWriter(TextWriter) ResXResourceWriter(TextWriter) ResXResourceWriter(TextWriter)

Initializes a new instance of the ResXResourceWriter class that writes to the specified TextWriter object.

public:
 ResXResourceWriter(System::IO::TextWriter ^ textWriter);
public ResXResourceWriter (System.IO.TextWriter textWriter);
new System.Resources.ResXResourceWriter : System.IO.TextWriter -> System.Resources.ResXResourceWriter

Parameters

textWriter
TextWriter TextWriter TextWriter TextWriter

The TextWriter object to send the output to.

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.

ResXResourceWriter(String) ResXResourceWriter(String) ResXResourceWriter(String) ResXResourceWriter(String)

Initializes a new instance of the ResXResourceWriter class that writes the resources to the specified file.

public:
 ResXResourceWriter(System::String ^ fileName);
public ResXResourceWriter (string fileName);
new System.Resources.ResXResourceWriter : string -> System.Resources.ResXResourceWriter
Public Sub New (fileName As String)

Parameters

fileName
String String String String

The output file name.

Exceptions

Remarks

This constructor creates filename if it does not exist and overwrites it if it does. If filename includes a directory path, the full path must exist or the constructor throws a DirectoryNotFoundException exception.

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.

ResXResourceWriter(Stream, Func<Type,String>) ResXResourceWriter(Stream, Func<Type,String>) ResXResourceWriter(Stream, Func<Type,String>)

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified stream object and sets a converter delegate. This delegate enables resource assemblies to be written that target versions of the .NET Framework before the .NET Framework 4 by using qualified assembly names.

public:
 ResXResourceWriter(System::IO::Stream ^ stream, Func<Type ^, System::String ^> ^ typeNameConverter);
public ResXResourceWriter (System.IO.Stream stream, Func<Type,string> typeNameConverter);
new System.Resources.ResXResourceWriter : System.IO.Stream * Func<Type, string> -> System.Resources.ResXResourceWriter

Parameters

stream
Stream Stream Stream Stream

The stream to send the output to.

typeNameConverter
Func<Type,String>

The delegate that is used to target earlier versions of the .NET Framework.

Remarks

Visual Studio and MSBuild use this constructor when you create resources for an application that target versions of the .NET Framework before the .NET Framework 4.

ResXResourceWriter(TextWriter, Func<Type,String>) ResXResourceWriter(TextWriter, Func<Type,String>) ResXResourceWriter(TextWriter, Func<Type,String>)

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified TextWriter object and sets a delegate that enables resource assemblies to be written that target versions of the .NET Framework before the .NET Framework 4 by using qualified assembly names.

public:
 ResXResourceWriter(System::IO::TextWriter ^ textWriter, Func<Type ^, System::String ^> ^ typeNameConverter);
public ResXResourceWriter (System.IO.TextWriter textWriter, Func<Type,string> typeNameConverter);
new System.Resources.ResXResourceWriter : System.IO.TextWriter * Func<Type, string> -> System.Resources.ResXResourceWriter

Parameters

textWriter
TextWriter TextWriter TextWriter TextWriter

The object to send output to.

typeNameConverter
Func<Type,String>

The delegate that is used to target earlier versions of the .NET Framework.

Remarks

Visual Studio and MSBuild use this constructor when you create resources for an application that target versions of the .NET Framework before the .NET Framework 4.

ResXResourceWriter(String, Func<Type,String>) ResXResourceWriter(String, Func<Type,String>) ResXResourceWriter(String, Func<Type,String>) ResXResourceWriter(String, Func<Type,String>)

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified file and sets a delegate that enables resource assemblies to be written that target versions of the .NET Framework before the .NET Framework 4 by using qualified assembly names.

public:
 ResXResourceWriter(System::String ^ fileName, Func<Type ^, System::String ^> ^ typeNameConverter);
public ResXResourceWriter (string fileName, Func<Type,string> typeNameConverter);
new System.Resources.ResXResourceWriter : string * Func<Type, string> -> System.Resources.ResXResourceWriter
Public Sub New (fileName As String, typeNameConverter As Func(Of Type, String))

Parameters

fileName
String String String String

The file to send output to.

typeNameConverter
Func<Type,String>

The delegate that is used to target earlier versions of the .NET Framework.

Exceptions

Remarks

Visual Studio and MSBuild use this constructor when you create resources for an application that target versions of the .NET Framework before the .NET Framework 4.

Applies to