ParserErrorCollection.IndexOf メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ParserErrorCollection.IndexOf メソッドの意味・解説 

ParserErrorCollection.IndexOf メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

コレクション内の指定した ParserError オブジェクトインデックス取得します

名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Function IndexOf ( _
    value As ParserError _
) As Integer
Dim instance As ParserErrorCollection
Dim value As ParserError
Dim returnValue As Integer

returnValue = instance.IndexOf(value)
public int IndexOf (
    ParserError value
)
public:
int IndexOf (
    ParserError^ value
)
public int IndexOf (
    ParserError value
)
public function IndexOf (
    value : ParserError
) : int

パラメータ

value

コレクションで検索する ParserError。

戻り値
コレクション内の ParserError オブジェクトの 0 から始まるインデックスParserErrorコレクション存在しない場合は 1。

解説解説

IndexOf メソッド使用してコレクション内の ParserError オブジェクトインデックス確認できます。これは、GetEnumerator メソッドから返される IEnumerator オブジェクト使用してコレクション反復処理を行う場合に、各 ParserErrorインデックス確認に便利です。

使用例使用例

ParserErrorCollection コレクション内の指定した ParserError オブジェクトインデックス求め方法次のコード例示します

' 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
// 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);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ParserErrorCollection クラス
ParserErrorCollection メンバ
System.Web 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からParserErrorCollection.IndexOf メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からParserErrorCollection.IndexOf メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からParserErrorCollection.IndexOf メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ParserErrorCollection.IndexOf メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ParserErrorCollection.IndexOf メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS