CodeDomProvider.CreateGenerator Method (String)

When overridden in a derived class, creates a new code generator using the specified file name for output.

Namespace: System.CodeDom.Compiler
Assembly: System (in system.dll)

public virtual ICodeGenerator CreateGenerator (
	string fileName
)
public ICodeGenerator CreateGenerator (
	String fileName
)
public function CreateGenerator (
	fileName : String
) : ICodeGenerator
Not applicable.

Parameters

fileName

The file name to output to.

Return Value

An ICodeGenerator that can be used to generate System.CodeDom based source code representations.

This method uses the specified file name for output.

NoteNote:

The base class implementation calls the CreateGenerator method, which is obsolete in the Microsoft .NET Framework version 2.0 and results in a NotSupportedException if an ICodeGenerator object is not returned.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: