CodeGenerator::ICodeGenerator::GenerateCodeFromNamespace Method (CodeNamespace^, TextWriter^, CodeGeneratorOptions^)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Generates code for the specified Code Document Object Model (CodeDOM) namespace and outputs it to the specified text writer using the specified options.
Assembly: System (in System.dll)
private: virtual void GenerateCodeFromNamespace( CodeNamespace^ e, TextWriter^ w, CodeGeneratorOptions^ o ) sealed = ICodeGenerator::GenerateCodeFromNamespace
Parameters
- e
-
Type:
System.CodeDom::CodeNamespace^
The namespace to generate code for.
- w
-
Type:
System.IO::TextWriter^
The text writer to output code to.
- o
-
Type:
System.CodeDom.Compiler::CodeGeneratorOptions^
The options to use for generating code.
| Exception | Condition |
|---|---|
| InvalidOperationException | w is not available. w may have been closed before the method call was made. |
.NET Framework
Available since 1.1
Available since 1.1
Show: