This documentation is archived and is not being maintained.

IResourceWriter Interface

Provides functionality to write resources to an output file or stream.

Namespace:  System.Resources
Assembly:  mscorlib (in mscorlib.dll)

public interface IResourceWriter : IDisposable

The IResourceWriter type exposes the following members.

Public methodAddResource(String, Byte[])Adds an 8-bit unsigned integer array as a named resource to the list of resources to be written.
Public methodAddResource(String, Object)Adds a named resource of type Object to the list of resources to be written.
Public methodAddResource(String, String)Adds a named resource of type String to the list of resources to be written.
Public methodCloseCloses the underlying resource file or stream, ensuring all the data has been written to the file.
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodGenerateWrites all the resources added by the AddResource method to the output file or stream.

Use resource writers to write resources in a particular file format. Generally, users will create a resource writer, call AddResource to add resources, and then call either Generate or Close to close the resource file.

See Encoding and Localization for details on the default resource file format.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.