Summary
Contains a collection of
NAnt.DotNet.Types.NamespaceImport
items.
- Assembly
- NAnt
.DotNet .dll - Namespace
- NAnt
.DotNet .Types - Interfaces
-
- ICollection
- IList
- Base Types
graph BT
Type-->Base0["DataTypeCollectionBase"]
click Base0 "/api/NAnt.DotNet.Types/DataTypeCollectionBase"
Base0-->Base1["DataTypeBase"]
click Base1 "/api/NAnt.Core/DataTypeBase"
Base1-->Base2["Element"]
click Base2 "/api/NAnt.Core/Element"
Base2-->Base3["Object"]
Type-.->Interface0["ICollection"]
Type-.->Interface1["IList"]
Type["NamespaceImportCollection"]
class Type type-node
Syntax
[Serializable()]
[ElementName("namespaceimports")]
public class NamespaceImportCollection : DataTypeCollectionBase, ICollection, IList
Examples
Define a reference with name "system.imports".
<namespaceimports id="system.imports">
<import namespace="System" />
<import namespace="System.Data" />
</namespaceimports>
Use the predefined set of imports to compile a VB.NET assembly.
<vbc target="exe" output="HelloWorld.exe" rootnamespace="HelloWorld">
<imports refid="system.imports" />
<sources>
<include name="**/*.vb" />
</sources>
<references>
<include name="System.dll" />
<include name="System.Data.dll" />
</references>
</vbc>
Attributes
Type | Description |
---|---|
Serializable |
|
ElementNameAttribute | Indicates that class should be treated as a NAnt element. |
Properties
Name | Value | Summary |
---|---|---|
CanBeReferenced | bool |
Gets a value indicating whether a reference to the type can be
defined.
Inherited from DataTypeBase
|
Count | int |
Gets the number of items in the collection.
Inherited from Data
|
CustomXmlProcessing | bool |
Gets a value indicating whether the element is performing additional
processing using the
NAnt.Core.Element.XmlNode that was used to
initialize the element.
Inherited from Element
|
ID | string |
The ID used to be referenced later.
Inherited from DataTypeBase
|
IsFixedSize | bool |
Gets a value indicating whether the collection has a fixed size.
Inherited from Data
|
IsReadOnly | bool |
Gets a value indicating whether the collection has a fixed size.
Inherited from Data
|
ItemType | Type |
Gets the
System.Type of the items in this collection.
|
List | ArrayList |
Gets the list of elements contained in the
NAnt.DotNet.Types.DataTypeCollectionBase instance.
Inherited from Data
|
Location | Location |
Gets or sets the location in the build file where the element is
defined.
Inherited from Element
|
Name | string |
Gets the name of the data type.
Inherited from DataTypeBase
|
NamespaceManager | XmlNamespaceManager |
Gets or sets the
System.Xml.XmlNamespaceManager .
Inherited from Element
|
Parent | Object |
Gets or sets the parent of the element.
Inherited from Element
|
Project | Project |
Gets or sets the
NAnt.Core.Element.Project to which this element belongs.
Inherited from Element
|
Properties | PropertyDictionary |
Gets the properties local to this
NAnt.Core.Element and the
NAnt.Core.Element.Project .
Inherited from Element
|
RefID | string |
The ID to use as the reference.
Inherited from DataTypeBase
|
this[int] | NamespaceImport |
Gets or sets the item at the specified index.
|
this[string] | NamespaceImport |
Gets the
NAnt.DotNet.Types.NamespaceImport with the specified namespace.
|
XmlNode | XmlNode |
Gets or sets the XML node of the element.
Inherited from Element
|
Methods
Name | Value | Summary |
---|---|---|
Add |
int |
Adds a
NAnt.DotNet.Types.NamespaceImport to the end of the collection.
|
AddRange |
void |
Adds the items of a
NAnt.DotNet.Types.NamespaceImportCollection to the end of the collection.
|
Clear |
void |
Removes all items from the collection.
Inherited from Data
|
Contains |
bool |
Determines whether a
NAnt.DotNet.Types.NamespaceImport is in the collection.
|
CopyTo |
void |
Copies the items of the collection to an
System.Array ,
starting at a particular index.
Inherited from Data
|
CopyTo |
void |
Copies all instance data of the
NAnt.Core.DataTypeBase to a given
NAnt.Core.DataTypeBase .
Inherited from DataTypeBase
|
CopyTo |
void |
Copies all instance data of the
NAnt.Core.Element to a given
NAnt.Core.Element .
Inherited from Element
|
Get |
XmlNode |
Locates the XML node for the specified attribute in the project
configuration node.
Inherited from Element
|
Get |
XmlNode |
Inherited from Element
|
GetEnumerator |
Namespace |
Returns an enumerator that can iterate through the collection.
|
GetLocation |
Location |
Retrieves the location in the build file where the element is
defined.
Inherited from Element
|
IndexOf |
int |
Gets the location of a
NAnt.DotNet.Types.NamespaceImport in the collection.
|
Initialize |
void |
Derived classes should override to this method to provide extra
initialization and validation not covered by the base class.
Inherited from DataTypeBase
|
Initialize |
void |
Performs default initialization.
Inherited from Element
|
Initialize |
Element |
Initializes the build element.
Inherited from Element
static
|
InitializeElement |
void |
Derived classes should override to this method to provide extra
initialization and validation not covered by the base class.
Inherited from Element
|
InitializeXml |
void |
Initializes all build attributes and child elements.
Inherited from Element
|
Insert |
void |
Inserts a
NAnt.DotNet.Types.NamespaceImport into the collection at the
specified index.
|
Log |
void |
Logs a message with the given priority.
Inherited from Element
|
Log |
void |
Logs a message with the given priority.
Inherited from Element
|
RangeCheck |
void |
Checks whether the specified index is within the range of this
collection.
Inherited from Data
|
Remove |
void |
Removes the specified
NAnt.DotNet.Types.NamespaceImport from the
collection.
|
RemoveAt |
void |
Removes an item at a specific index.
Inherited from Data
|
Reset |
void |
Should be overridden by derived classes. clones the referenced types
data into the current instance.
Inherited from DataTypeBase
|
ToString |
string |
Returns a comma-delimited list of namespace imports.
|
ValidateType |
void |
Used by methods that take
System.Object instances as argument
to verify whether the instance is valid for the collection class.
Inherited from Data
|