NetworkInterface.SupportsMulticast プロパティ
アセンブリ: System (system.dll 内)

インターフェイスがマルチキャスト パケットを受信する場合は true。それ以外の場合は false。

例外の種類 | 条件 |
---|---|
PlatformNotSupportedException | このプロパティは、Windows XP より前のオペレーティング システムが実行されているコンピュータでは無効です。 |


ローカル コンピュータのすべてのインターフェイスの概要を表示するコード例を次に示します。
Public Shared Sub DisplayTypeAndAddress() Dim computerProperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties() Dim nics As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces() Console.WriteLine("Interface information for {0}.{1} ", computerProperties.HostName, computerProperties.DomainName) Dim adapter As NetworkInterface For Each adapter In nics Dim properties As IPInterfaceProperties = adapter.GetIPProperties() Console.WriteLine(adapter.Description) Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length, "="c)) Console.WriteLine(" Interface type .......................... : {0}", adapter.NetworkInterfaceType) Console.WriteLine(" Physical Address ........................ : {0}", adapter.GetPhysicalAddress().ToString()) Console.WriteLine(" Is receive only.......................... : {0}", adapter.IsReceiveOnly) Console.WriteLine(" Multicast................................ : {0}", adapter.SupportsMulticast) Next adapter End Sub 'DisplayTypeAndAddress
public static void DisplayTypeAndAddress() { IPGlobalProperties computerProperties = IPGlobalProperties.GetIPGlobalProperties(); NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces(); Console.WriteLine("Interface information for {0}.{1} ", computerProperties.HostName, computerProperties.DomainName); foreach (NetworkInterface adapter in nics) { IPInterfaceProperties properties = adapter.GetIPProperties(); Console.WriteLine(adapter.Description); Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length,'=')); Console.WriteLine(" Interface type .......................... : {0}", adapter.NetworkInterfaceType); Console.WriteLine(" Physical Address ........................ : {0}", adapter.GetPhysicalAddress().ToString()); Console.WriteLine(" Is receive only.......................... : {0}", adapter.IsReceiveOnly); Console.WriteLine(" Multicast................................ : {0}", adapter.SupportsMulticast); } }

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


Weblioに収録されているすべての辞書からNetworkInterface.SupportsMulticast プロパティを検索する場合は、下記のリンクをクリックしてください。

- NetworkInterface.SupportsMulticast プロパティのページへのリンク