CodeDirectiveCollection.Item Property (Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the CodeDirective object at the specified index in the collection.

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

public CodeDirective this[
	int index
] { get; set; }


Type: System.Int32

The index position to access.

Property Value

Type: System.CodeDom.CodeDirective

The CodeDirective at the index position.

Exception Condition

index is outside the valid range of index positions for the collection.

This property is an indexer that can be used to access the collection.

.NET Framework
Available since 2.0
Return to top