BindingCollection.IndexOf メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As BindingCollection Dim binding As Binding Dim returnValue As Integer returnValue = instance.IndexOf(binding)
戻り値
32 ビット符号付き整数。

Dim myServiceDescription As ServiceDescription = ServiceDescription.Read("MathService_input.wsdl") Console.WriteLine(("Total Number of bindings defined are:" + myServiceDescription.Bindings.Count.ToString())) myBinding = myServiceDescription.Bindings(0) ' Remove the first binding in the collection. myServiceDescription.Bindings.Remove(myBinding) Console.WriteLine(("Successfully removed binding " + myBinding.Name)) Console.WriteLine(("Total Number of bindings defined now are:" + myServiceDescription.Bindings.Count.ToString())) myServiceDescription.Write("MathService_temp.wsdl") ' Add binding to the ServiceDescription instance. myServiceDescription.Bindings.Add(myBinding) If myServiceDescription.Bindings.Contains(myBinding) Then Console.WriteLine(("Successfully added binding " + myBinding.Name)) Console.WriteLine(("Binding was added at index " + myServiceDescription.Bindings.IndexOf(myBinding).ToString())) Console.WriteLine(("Total Number of bindings defined now are:" + myServiceDescription.Bindings.Count.ToString())) myServiceDescription.Write("MathService_temp1.wsdl")
ServiceDescription myServiceDescription = ServiceDescription.Read("MathService_input.wsdl"); Console.WriteLine("Total Number of bindings defined are:" + myServiceDescription.Bindings.Count); myBinding = myServiceDescription.Bindings[0]; // Remove the first binding in the collection. myServiceDescription.Bindings.Remove(myBinding); Console.WriteLine("Successfully removed binding " + myBinding.Name); Console.WriteLine("Total Number of bindings defined now are:" + myServiceDescription.Bindings.Count); myServiceDescription.Write("MathService_temp.wsdl"); // Add binding to the ServiceDescription instance. myServiceDescription.Bindings.Add(myBinding); if (myServiceDescription.Bindings.Contains(myBinding)) Console.WriteLine("Successfully added binding " + myBinding.Name); Console.WriteLine("Binding was added at index " + myServiceDescription.Bindings.IndexOf(myBinding)); Console.WriteLine("Total Number of bindings defined now are:" + myServiceDescription.Bindings.Count); myServiceDescription.Write("MathService_temp1.wsdl");
ServiceDescription^ myServiceDescription = ServiceDescription::Read( "MathService_input.wsdl" ); Console::WriteLine( "Total Number of bindings defined are: {0}", myServiceDescription->Bindings->Count ); myBinding = myServiceDescription->Bindings[ 0 ]; // Remove the first binding in the collection. myServiceDescription->Bindings->Remove( myBinding ); Console::WriteLine( "Successfully removed binding {0}", myBinding->Name ); Console::WriteLine( "Total Number of bindings defined now are: {0}", myServiceDescription->Bindings->Count ); myServiceDescription->Write( "MathService_temp.wsdl" ); // Add binding to the ServiceDescription instance. myServiceDescription->Bindings->Add( myBinding ); if ( myServiceDescription->Bindings->Contains( myBinding ) ) Console::WriteLine( "Successfully added binding {0}", myBinding->Name ); Console::WriteLine( "Binding was added at index {0}", myServiceDescription->Bindings->IndexOf( myBinding ) ); Console::WriteLine( "Total Number of bindings defined now are: {0}", myServiceDescription->Bindings->Count ); myServiceDescription->Write( "MathService_temp1.wsdl" );
ServiceDescription myServiceDescription = ServiceDescription.Read("MathService_input.wsdl"); Console.WriteLine("Total Number of bindings defined are:" + myServiceDescription.get_Bindings().get_Count()); myBinding = myServiceDescription.get_Bindings().get_Item(0); // Remove the first binding in the collection. myServiceDescription.get_Bindings().Remove(myBinding); Console.WriteLine("Successfully removed binding " + myBinding.get_Name()); Console.WriteLine("Total Number of bindings defined now are:" + myServiceDescription.get_Bindings().get_Count()); myServiceDescription.Write("MathService_temp.wsdl"); // Add binding to the ServiceDescription instance. myServiceDescription.get_Bindings().Add(myBinding); if (myServiceDescription.get_Bindings().Contains(myBinding)) { Console.WriteLine("Successfully added binding " + myBinding.get_Name()); } Console.WriteLine("Binding was added at index " + myServiceDescription.get_Bindings().IndexOf(myBinding)); Console.WriteLine("Total Number of bindings defined now are:" + myServiceDescription.get_Bindings().get_Count()); myServiceDescription.Write("MathService_temp1.wsdl");

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


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

- BindingCollection.IndexOf メソッドのページへのリンク