BindingCollection.Add メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)

指定した Binding を BindingCollection の末尾追加します

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

使用例使用例

Dim myServiceDescription As ServiceDescription = ServiceDescription.Read("MathService_input.wsdl") Console.WriteLine(("Total Number of bindings defined are:"

' Remove the first binding in the collection. myServiceDescription.Bindings.Remove(myBinding) Console.WriteLine(("Successfully removed binding "

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);

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);

プラットフォームプラットフォーム

バージョン情報バージョン情報

参照参照

関連項目
BindingCollection クラス
BindingCollection メンバ
System.Web.Services.Description 名前空間