ParserErrorCollection.Remove(ParserError) 方法

定義

從集合中移除指定的 ParserError 物件。Removes the specified ParserError object from the collection.

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

要從集合中移除的 ParserErrorThe ParserError to remove from the collection.

範例

下列程式碼範例示範如何 ParserError 從物件中的指定索引移除 ParserErrorCollectionThe following code example demonstrates how to remove a ParserError from the specified index in a ParserErrorCollection object.

// 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 當您有的參考時,請使用方法,從集合中移除物件 ParserErrorUse the Remove method to remove a ParserError object from the collection when you have a reference to the ParserError.

適用於