ParserErrorCollection.Remove(ParserError) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した 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 オブジェクトをコレクションから削除します。