CodeNamespaceCollection.Item Property (Int32)

 
System_CAPS_noteNote

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

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

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

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

Parameters

index
Type: System.Int32

The index of the collection to access.

Property Value

Type: System.CodeDom.CodeNamespace

A CodeNamespace at each valid index.

Exception Condition
ArgumentOutOfRangeException

The index parameter is outside the valid range of indexes for the collection.

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

.NET Framework
Available since 1.1
Return to top
Show: