CustomErrorCollection.Item[] Property

Definition

Gets the specified CustomError.

Overloads

Item[Int32]

Gets the CustomError with the specified index.

Item[String]

Gets the CustomError with the specified status code.

Item[Int32]

Gets the CustomError with the specified index.

public System.Web.Configuration.CustomError this[int index] { get; set; }

Parameters

index
Int32

The collection error's index.

Property Value

The CustomError at the specified index.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String]

Gets the CustomError with the specified status code.

public System.Web.Configuration.CustomError this[string statusCode] { get; }

Parameters

statusCode
String

The HTTP status code.

Property Value

The CustomError with the specified status code.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1