CustomErrorCollection.Item[] 属性

定义

获取指定的 CustomError

重载

名称 说明
Item[Int32]

获取 CustomError 具有指定索引的索引。

Item[String]

获取 CustomError 具有指定状态代码的项。

Item[Int32]

获取 CustomError 具有指定索引的索引。

public:
 property System::Web::Configuration::CustomError ^ default[int] { System::Web::Configuration::CustomError ^ get(int index); void set(int index, System::Web::Configuration::CustomError ^ value); };
public System.Web.Configuration.CustomError this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.CustomError with get, set
Default Public Property Item(index As Integer) As CustomError

参数

index
Int32

集合错误的索引。

属性值

位于 CustomError 指定索引处。

适用于

Item[String]

获取 CustomError 具有指定状态代码的项。

public:
 property System::Web::Configuration::CustomError ^ default[System::String ^] { System::Web::Configuration::CustomError ^ get(System::String ^ statusCode); };
public System.Web.Configuration.CustomError this[string statusCode] { get; }
member this.Item(string) : System.Web.Configuration.CustomError
Default Public ReadOnly Property Item(statusCode As String) As CustomError

参数

statusCode
String

HTTP 状态代码。

属性值

具有 CustomError 指定状态代码。

适用于