System.Resources.ResXResourceWriter.Generate Method

Writes all resources added by the ResXResourceWriter.AddResource(string, Byte[]) method to the output file or stream.

Syntax

public void Generate ()

Remarks

The ResXResourceWriter.Generate method writes the resources to the output file or stream. If you want to write the resources as well as close the output file or stream, call the ResXResourceWriter.Close method.

The ResXResourceWriter.Generate method can be called only once. After calling the ResXResourceWriter.Generate method, all System.Resources.IResourceWriter methods other than ResXResourceWriter.Close will throw an exception.

Requirements

Namespace: System.Resources
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0