ParserErrorCollection クラス
アセンブリ: System.Web (system.web.dll 内)


ParserErrorCollection クラスは、ParserError オブジェクトのコレクションを管理するために使用できるメソッドとプロパティを提供します。たとえば、解析時に、カスタムの BuildProvider オブジェクトを使用して解析中にキャッチされるすべての解析例外を報告すると同時に、一連のパーサー エラーをコレクションに追加できます。

ParserErrorCollection メソッドを使用する方法を次のコード例に示します。
' Create an empty ParserErrorCollection. Dim collection As New ParserErrorCollection() ' Add a ParserError to the collection. collection.Add(New ParserError("ErrorName", "Path", 1)) ' Add an array of ParserError objects to the collection. Dim errors As ParserError() = _ {New ParserError("Error 2", "Path", 1), _ New ParserError("Error 3", "Path", 1)} collection.AddRange(errors) ' Ads a collection of ParserError objects to the collection. Dim errorsCollection As New ParserErrorCollection() errorsCollection.Add(New ParserError("Error", "Path", 1)) errorsCollection.Add(New ParserError("Error", "Path", 1)) collection.AddRange(errorsCollection) ' Test for the presence of a ParserError in the ' collection, and retrieve its index if it is found. Dim testError As New ParserError("Error", "Path", 1) Dim itemIndex As Integer = -1 If collection.Contains(testError) Then itemIndex = collection.IndexOf(testError) End If ' Copy the contents of the collection to a ' compatible array, starting at index 0 of the ' destination array. Dim errorsToSort(5) As ParserError collection.CopyTo(errorsToSort, 0) ' Retrieve the count of the items in the collection. Dim collectionCount As Integer = collection.Count ' 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 the ParserError at index 0. collection.RemoveAt(0)
// Create an empty ParserErrorCollection. ParserErrorCollection collection = new ParserErrorCollection(); // Add a ParserError to the collection. collection.Add(new ParserError("ErrorName", "Path", 1)); // Add an array of ParserError objects to the collection. ParserError[] errors = { new ParserError("Error 2", "Path", 1), new ParserError("Error 3", "Path", 1) }; collection.AddRange(errors); // Add a collection of ParserError objects to the collection. ParserErrorCollection errorsCollection = new ParserErrorCollection(); errorsCollection.Add(new ParserError("Error", "Path", 1)); errorsCollection.Add(new ParserError("Error", "Path", 1)); collection.AddRange(errorsCollection); // Test for the presence of a ParserError in the // collection, and retrieve its index if it is found. ParserError testError = new ParserError("Error", "Path", 1); int itemIndex = -1; if (collection.Contains(testError)) itemIndex = collection.IndexOf(testError); // Copy the contents of the collection to a // compatible array, starting at index 0 of the // destination array. ParserError[] errorsToSort = new ParserError[5]; collection.CopyTo(errorsToSort, 0); // Retrieve the count of the items in the collection. int collectionCount = collection.Count; // 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); // Remove the ParserError at index 0. collection.RemoveAt(0);

System.Collections.CollectionBase
System.Web.ParserErrorCollection


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ParserErrorCollection コンストラクタ ()
アセンブリ: System.Web (system.web.dll 内)



Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ParserErrorCollection コンストラクタ (ParserError[])
アセンブリ: System.Web (system.web.dll 内)



Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ParserErrorCollection コンストラクタ

名前 | 説明 |
---|---|
ParserErrorCollection () | ParserErrorCollection クラスの新しいインスタンスを初期化します。 |
ParserErrorCollection (ParserError[]) | ParserErrorCollection クラスの新しいインスタンスを初期化します。 |

ParserErrorCollection プロパティ

名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。 ( CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。 ( CollectionBase から継承されます。) |
![]() | Item | コレクション内の指定したインデックス位置にある ParserError オブジェクトを取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。 ( CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。 ( CollectionBase から継承されます。) |

ParserErrorCollection メソッド


名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | OnClear | CollectionBase インスタンスの内容を消去するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsert | CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemove | CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSet | CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |
![]() | OnValidate | 値を検証するときに、追加のカスタム プロセスを実行します。 ( CollectionBase から継承されます。) |

ParserErrorCollection メンバ
解析中に検出される一連のパーサー エラーを管理します。このクラスは継承できません。
ParserErrorCollection データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | Capacity | CollectionBase に格納できる要素の数を取得または設定します。(CollectionBase から継承されます。) |
![]() | Count | CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。(CollectionBase から継承されます。) |
![]() | Item | コレクション内の指定したインデックス位置にある ParserError オブジェクトを取得または設定します。 |

名前 | 説明 | |
---|---|---|
![]() | InnerList | CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。(CollectionBase から継承されます。) |
![]() | List | CollectionBase インスタンス内の要素のリストを格納する IList を取得します。(CollectionBase から継承されます。) |


名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | OnClear | CollectionBase インスタンスの内容を消去するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnClearComplete | CollectionBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsert | CollectionBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnInsertComplete | CollectionBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemove | CollectionBase インスタンスから要素を削除するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnRemoveComplete | CollectionBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSet | CollectionBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnSetComplete | CollectionBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |
![]() | OnValidate | 値を検証するときに、追加のカスタム プロセスを実行します。 (CollectionBase から継承されます。) |

Weblioに収録されているすべての辞書からParserErrorCollectionを検索する場合は、下記のリンクをクリックしてください。

- ParserErrorCollectionのページへのリンク