ResXResourceWriter Constructors
Definition
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.
Initializes a new instance of the ResXResourceWriter class.
Overloads
ResXResourceWriter(Stream) |
Initializes a new instance of the ResXResourceWriter class that writes the resources to the specified stream object. |
ResXResourceWriter(TextWriter) |
Initializes a new instance of the ResXResourceWriter class that writes to the specified TextWriter object. |
ResXResourceWriter(String) |
Initializes a new instance of the ResXResourceWriter class that writes the resources to the specified file. |
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 .NET Framework 4 by using qualified assembly names. |
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 .NET Framework 4 by using qualified assembly names. |
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 .NET Framework 4 by using qualified assembly names. |
ResXResourceWriter(Stream)
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
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
Public Sub New (stream As Stream)
Parameters
- 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.
Applies to
ResXResourceWriter(TextWriter)
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
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
Public Sub New (textWriter As TextWriter)
Parameters
- textWriter
- TextWriter
The TextWriter object to send the output to.
Applies to
ResXResourceWriter(String)
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
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
The output file name.
Exceptions
The directory specified in filename
does not exist.
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.
Applies to
ResXResourceWriter(Stream, Func<Type,String>)
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
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 .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);
public ResXResourceWriter (System.IO.Stream stream, Func<Type?,string> typeNameConverter);
new System.Resources.ResXResourceWriter : System.IO.Stream * Func<Type, string> -> System.Resources.ResXResourceWriter
Public Sub New (stream As Stream, typeNameConverter As Func(Of Type, String))
Parameters
- stream
- Stream
The stream to send the output to.
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 .NET Framework 4.
Applies to
ResXResourceWriter(TextWriter, Func<Type,String>)
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
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 .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);
public ResXResourceWriter (System.IO.TextWriter textWriter, Func<Type?,string> typeNameConverter);
new System.Resources.ResXResourceWriter : System.IO.TextWriter * Func<Type, string> -> System.Resources.ResXResourceWriter
Public Sub New (textWriter As TextWriter, typeNameConverter As Func(Of Type, String))
Parameters
- textWriter
- TextWriter
The object to send output to.
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.
Applies to
ResXResourceWriter(String, Func<Type,String>)
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
- Source:
- ResXResourceWriter.cs
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 .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);
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
The file to send output to.
The delegate that is used to target earlier versions of the .NET Framework.
Exceptions
The directory specified in filename
does not exist.
Remarks
Visual Studio and MSBuild use this constructor when you create resources for an application that target versions of the .NET Framework before .NET Framework 4.