CodeDirectiveCollection::Add Method (CodeDirective^)

 

Adds the specified CodeDirective object to the collection.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
int Add(
	CodeDirective^ value
)

Parameters

value
Type: System.CodeDom::CodeDirective^

The CodeDirective object to add.

Return Value

Type: System::Int32

The index position at which the new element was inserted.

The following code example shows the use of the Add method to add a CodeDirective object to the collection. This example is part of a larger example provided for the CodeDirectiveCollection class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: