Export (0) Print
Expand All

ResXResourceWriter.Generate Method

Writes all resources added by the AddResource method to the output file or stream.

[Visual Basic]
Public Overridable Sub Generate() Implements _
   IResourceWriter.Generate
[C#]
public virtual void Generate();
[C++]
public: virtual void Generate();
[JScript]
public function Generate();

Implements

IResourceWriter.Generate

Exceptions

Exception Type Condition
InvalidOperationException The resource has already been saved.

Remarks

Writes the resources to the file or stream.

Generate does not close the output file or output stream. Instead, consider calling Close. Generate is useful when you need to create a resource file, but you do not want to close the output stream. Generate can only be called once. After calling Generate, all IResourceWriter methods other than Close will throw an exception.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ResXResourceWriter Class | ResXResourceWriter Members | System.Resources Namespace

Show:
© 2014 Microsoft