ParserErrorCollection 建構函式

定義

初始化 ParserErrorCollection 類別的新執行個體。

多載

名稱 Description
ParserErrorCollection()

初始化 ParserErrorCollection 類別的新執行個體。

ParserErrorCollection(ParserError[])

初始化 ParserErrorCollection 類別的新執行個體。

ParserErrorCollection()

初始化 ParserErrorCollection 類別的新執行個體。

public:
 ParserErrorCollection();
public ParserErrorCollection();
Public Sub New ()

範例

以下程式碼範例示範如何初始化該 ParserErrorCollection 類別的實例。

// Create an empty ParserErrorCollection.
ParserErrorCollection collection = new ParserErrorCollection();
' Create an empty ParserErrorCollection.
Dim collection As New ParserErrorCollection()

適用於

ParserErrorCollection(ParserError[])

初始化 ParserErrorCollection 類別的新執行個體。

public:
 ParserErrorCollection(cli::array <System::Web::ParserError ^> ^ value);
public ParserErrorCollection(System.Web.ParserError[] value);
new System.Web.ParserErrorCollection : System.Web.ParserError[] -> System.Web.ParserErrorCollection
Public Sub New (value As ParserError())

參數

value
ParserError[]

一個型別 ParserError 的陣列,指定要加入集合的錯誤。

備註

ParserErrorCollection.ParserErrorCollection建構子會向集合加入一組ParserError物件陣列。

適用於