NAnt SDK Documentation - v0.92

NAntSchemaTask.CreateXsdAttribute Method 

Creates a new XmlSchemaAttribute instance.

[Visual Basic]
Protected Shared Function CreateXsdAttribute( _
   ByVal name As String, _
   ByVal required As Boolean _
) As XmlSchemaAttribute
[C#]
protected static XmlSchemaAttribute CreateXsdAttribute(
   string name,
   bool required
);

Parameters

name
The name of the attribute.
required
Value indicating whether the attribute should be required.

Return Value

The new XmlSchemaAttribute instance.

See Also

NAntSchemaTask Class | NAnt.Core.Tasks Namespace