ParserErrorCollection.Remove(ParserError) 方法

定義

從集合中移除指定的 ParserError 物件。

public:
 void Remove(System::Web::ParserError ^ value);
public void Remove(System.Web.ParserError value);
member this.Remove : System.Web.ParserError -> unit
Public Sub Remove (value As ParserError)

參數

value
ParserError

從收藏中移除。ParserError

範例

以下程式碼範例示範如何將 a ParserError 從物件指定的索引 ParserErrorCollection 中移除。

// Insert a ParserError at index 0 of the collection.
ParserError error = new ParserError("Error", "Path", 1);
collection.Insert(0, error);

// Remove the specified ParserError from the collection.
collection.Remove(error);
' Insert a ParserError at index 0 of the collection.
Dim [error] As New ParserError("Error", "Path", 1)
collection.Insert(0, [error])

' Remove the specified ParserError from the collection.
collection.Remove([error])

備註

Remove ParserError當你有參考 ParserError.

適用於