NAntSchemaTask.

WriteSchema(Stream, Type[], Type[], string) Method

Summary

Creates a NAnt Schema for given types
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Tasks
Containing Type
NAntSchemaTask

Syntax

public static XmlSchema WriteSchema(Stream stream, Type[] tasks, Type[] dataTypes, string targetNS)

Parameters

Name Type Description
stream Stream The output stream to save the schema to. If null, writing is ignored, no exception generated.
tasks Type[] The list of tasks to generate XML Schema for.
dataTypes Type[] The list of data types to generate XML Schema for.
targetNS string The target namespace to output.

Return Value

Type Description
XmlSchema The new NAnt Schema.