IPGlobalProperties クラスとは? わかりやすく解説

IPGlobalProperties クラス

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

ローカル コンピュータネットワーク接続に関する情報提供します

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

Public MustInherit Class
 IPGlobalProperties
Dim instance As IPGlobalProperties
public abstract class IPGlobalProperties
public ref class IPGlobalProperties abstract
public abstract class IPGlobalProperties
public abstract class IPGlobalProperties
解説解説
使用例使用例

このクラスインスタンス使用してローカル コンピュータに関する情報表示するコード例次に示します

Public Shared Sub ShowInboundIPStatistics()
 
    Dim properties As IPGlobalProperties =
 IPGlobalProperties.GetIPGlobalProperties()
    Dim ipstat As IPGlobalStatistics = properties.GetIPv4GlobalStatistics()
    Console.WriteLine("  Inbound Packet Data:")
    Console.WriteLine("      Received ............................
 : {0}", ipstat.ReceivedPackets)
    Console.WriteLine("      Forwarded ...........................
 : {0}", ipstat.ReceivedPacketsForwarded)
    Console.WriteLine("      Delivered ...........................
 : {0}", ipstat.ReceivedPacketsDelivered)
    Console.WriteLine("      Discarded ...........................
 : {0}", ipstat.ReceivedPacketsDiscarded)

End Sub 'ShowInboundIPStatistics

public static void ShowInboundIPStatistics()
{
     IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
     IPGlobalStatistics ipstat = properties.GetIPv4GlobalStatistics();
     Console.WriteLine("  Inbound Packet Data:");
     Console.WriteLine("      Received ............................ : {0}",
 
     ipstat.ReceivedPackets);
     Console.WriteLine("      Forwarded ........................... : {0}",
 
     ipstat.ReceivedPacketsForwarded);
     Console.WriteLine("      Delivered ........................... : {0}",
 
     ipstat.ReceivedPacketsDelivered);
     Console.WriteLine("      Discarded ........................... : {0}",
 
     ipstat.ReceivedPacketsDiscarded);   
}
継承階層継承階層
System.Object
  System.Net.NetworkInformation.IPGlobalProperties
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPGlobalProperties メンバ
System.Net.NetworkInformation 名前空間



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

辞書ショートカット

すべての辞書の索引

「IPGlobalProperties クラス」の関連用語

IPGlobalProperties クラスのお隣キーワード
検索ランキング

   

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



IPGlobalProperties クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS