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

次のコード例では、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 オブジェクトをコレクションから削除します。

適用対象