共用方式為


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

適用於