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

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

ServiceDescriptionCollection.IndexOf メソッド

指定した ServiceDescription検索しコレクション内で最初に見つかった位置の 0 から始まるインデックス番号返します

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

Public Function IndexOf ( _
    serviceDescription As ServiceDescription _
) As Integer
Dim instance As ServiceDescriptionCollection
Dim serviceDescription As ServiceDescription
Dim returnValue As Integer

returnValue = instance.IndexOf(serviceDescription)
public int IndexOf (
    ServiceDescription serviceDescription
)
public:
int IndexOf (
    ServiceDescription^ serviceDescription
)
public int IndexOf (
    ServiceDescription serviceDescription
)
public function IndexOf (
    serviceDescription : ServiceDescription
) : int

パラメータ

serviceDescription

コレクション内での検索対象となる ServiceDescription。

戻り値
32 ビット符号付き整数

使用例使用例
' Get the index of 'ServiceDescription' object.
Dim myIndex As Integer =
 myCollection.IndexOf(myServiceDescription2)
' Remove 'ServiceDescription' object from the collection.
myCollection.Remove(myServiceDescription2)
Console.WriteLine("Element at index {0} is removed ",
 myIndex.ToString())
// Get the index of 'ServiceDescription' object.
int myIndex = myCollection.IndexOf(myServiceDescription2); 
// Remove 'ServiceDescription' object from the collection.
myCollection.Remove(myServiceDescription2);
Console.WriteLine("Element at index {0} is removed ", myIndex);
// Get the index of 'ServiceDescription' object.
int myIndex = myCollection.IndexOf(myServiceDescription2);
// Remove 'ServiceDescription' object from the collection.
myCollection.Remove(myServiceDescription2);
Console.WriteLine("Element at index {0} is removed ", 
    System.Convert.ToString(myIndex));
// Get the index of a ServiceDescription.
int myIndex = myCollection.IndexOf(myServiceDescription2);
// Remove a ServiceDescription from the collection.
myCollection.Remove(myServiceDescription2);
Console.WriteLine("Element at index {0} is removed.",
    System.Convert.ToString(myIndex));
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescriptionCollection クラス
ServiceDescriptionCollection メンバ
System.Web.Services.Description 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS