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

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

PortCollection.Add メソッド

指定した Port を PortCollection の末尾追加します

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

使用例使用例
myPortCollection = myService.Ports
Dim myNewPort As Port = myPortCollection(0)
myPortCollection.Remove(myNewPort)

' Display the number of ports.
Console.WriteLine(ControlChars.NewLine & _
   "Total number of ports before " & _
   "adding a new port : " & _
   myService.Ports.Count.ToString)

' Add a new port.
myPortCollection.Add(myNewPort)

' Display the number of ports after adding a port.
Console.WriteLine("Total number of ports after " &
 _
   "adding a new port : " & _
   myService.Ports.Count.ToString)

myPortCollection = myService.Ports;
Port myNewPort = myPortCollection[0];

myPortCollection.Remove(myNewPort);

// Display the number of ports.
Console.WriteLine("\nTotal number of ports before"
   + " adding a new port : " +  myService.Ports.Count);

// Add a new port.
myPortCollection.Add(myNewPort);

// Display the number of ports after adding a port.
Console.WriteLine("Total number of ports after"
   + " adding a new port : " + myService.Ports.Count);

myPortCollection = myService->Ports;
Port^ myNewPort = myPortCollection[ 0 ];
myPortCollection->Remove( myNewPort );

// Display the number of ports.
Console::WriteLine( "\nTotal number of ports before adding a new
 port : {0}", myService->Ports->Count );

// Add a new port.
myPortCollection->Add( myNewPort );

// Display the number of ports after adding a port.
Console::WriteLine( "Total number of ports after adding a new
 port : {0}", myService->Ports->Count );
myPortCollection = myService.get_Ports();
Port myNewPort = myPortCollection.get_Item(0);
myPortCollection.Remove(myNewPort);

// Display the number of ports.
Console.WriteLine("\nTotal number of ports before" 
    + " adding a new port : " 
    + myService.get_Ports().get_Count());

// Add a new port.
myPortCollection.Add(myNewPort);

// Display the number of ports after adding a port.
Console.WriteLine("Total number of ports after" 
    + " adding a new port : " 
    + myService.get_Ports().get_Count());
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PortCollection クラス
PortCollection メンバ
System.Web.Services.Description 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS