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

指定索引处的 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

具有指定状态代码的 CustomError

适用于