Get Method (Int32)
Collapse the table of content
Expand the table of content

CustomErrorCollection.Get Method (Int32)


Gets the CustomError object with the specified index.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public CustomError Get(
	int index


Type: System.Int32

The collection index of the CustomError object.

Return Value

Type: System.Web.Configuration.CustomError

The CustomError with the specified index.

The following code example shows how to get a CustomError object at the specified collection index.

Refer to the code example in the CustomErrorCollection class topic to learn how to get the collection.

// Get the error with collection index 0.
CustomError customError = 

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft