NAnt SDK Documentation - v0.92

NAntSchemaTask.WriteSchema Method 

Creates a NAnt Schema for given types

[Visual Basic]
Public Shared Function WriteSchema( _
   ByVal stream As Stream, _
   ByVal tasks As Type(), _
   ByVal dataTypes As Type(), _
   ByVal targetNS As String _
) As XmlSchema
[C#]
public static XmlSchema WriteSchema(
   Stream stream,
   Type[] tasks,
   Type[] dataTypes,
   string targetNS
);

Parameters

stream
The output stream to save the schema to. If a null reference (Nothing in Visual Basic), writing is ignored, no exception generated.
tasks
The list of tasks to generate XML Schema for.
dataTypes
The list of datatypes to generate XML Schema for.
targetNS
The target namespace to output.

Return Value

The new NAnt Schema.

See Also

NAntSchemaTask Class | NAnt.Core.Tasks Namespace