IResourceWriter IResourceWriter IResourceWriter IResourceWriter Interface

Definition

Provides the base functionality for writing resources to an output file or stream.

public interface class IResourceWriter : IDisposable
[System.Runtime.InteropServices.ComVisible(true)]
public interface IResourceWriter : IDisposable
type IResourceWriter = interface
    interface IDisposable
Public Interface IResourceWriter
Implements IDisposable
Derived
Attributes
Implements

Remarks

Resource writers are used to write resources to files in a particular file format. Implement this interface if you want to control the way in which a resource file is written (for example, to store resources in something other than a .txt, .resx, or binary .resources file). Otherwise, use the default ResourceWriter class, which writes resources to a binary .resources file, or the ResXResourceWriter class, which writes resources to an XML resource (.resx) file.

Methods

AddResource(String, Byte[]) AddResource(String, Byte[]) AddResource(String, Byte[]) AddResource(String, Byte[])

Adds an 8-bit unsigned integer array as a named resource to the list of resources to be written.

AddResource(String, Object) AddResource(String, Object) AddResource(String, Object) AddResource(String, Object)

Adds a named resource of type Object to the list of resources to be written.

AddResource(String, String) AddResource(String, String) AddResource(String, String) AddResource(String, String)

Adds a named resource of type String to the list of resources to be written.

Close() Close() Close() Close()

Closes the underlying resource file or stream, ensuring all the data has been written to the file.

Generate() Generate() Generate() Generate()

Writes all the resources added by the AddResource(String, String) method to the output file or stream.

Applies to

See Also