IPv4InterfaceProperties.IsAutomaticPrivateAddressingActive プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IPv4InterfaceProperties.IsAutomaticPrivateAddressingActive プロパティの意味・解説 

IPv4InterfaceProperties.IsAutomaticPrivateAddressingActive プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

このインターフェイス自動プライベート IP アドレス指定 (APIPA) のアドレスがあるかどうかを示す Boolean 値を取得します

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

Public MustOverride ReadOnly
 Property IsAutomaticPrivateAddressingActive As
 Boolean
Dim instance As IPv4InterfaceProperties
Dim value As Boolean

value = instance.IsAutomaticPrivateAddressingActive
public abstract bool IsAutomaticPrivateAddressingActive
 { get; }
public:
virtual property bool IsAutomaticPrivateAddressingActive {
    bool get () abstract;
}
/** @property */
public abstract boolean get_IsAutomaticPrivateAddressingActive
 ()
public abstract function get
 IsAutomaticPrivateAddressingActive () : boolean

プロパティ
インターフェイスAPIPA アドレス使用している場合trueそれ以外場合false

解説解説
使用例使用例

IPv4InterfaceProperties オブジェクト取得して、そのデータ表示するコード例次に示します

Public Shared Sub DisplayIPv4NetworkInterfaces()
 
    Dim nics As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
    Dim properties As IPGlobalProperties =
 IPGlobalProperties.GetIPGlobalProperties()
    Console.WriteLine("IPv4 interface information for {0}.{1}",
 properties.HostName, properties.DomainName)
    
    Dim adapter As NetworkInterface
    For Each adapter In
  nics
        ' Only display informatin for interfaces that support IPv4.
        If adapter.Supports(NetworkInterfaceComponent.IPv4) =
 False Then
            GoTo ContinueForEach1
        End If
        Console.WriteLine()
        Console.WriteLine(adapter.Description)
        ' Underline the description.
        Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length,
 "="c))
        Dim adapterProperties As IPInterfaceProperties
 = adapter.GetIPProperties()
        ' Try to get the IPv4 interface properties.
        Dim p As IPv4InterfaceProperties =
 adapterProperties.GetIPv4Properties()
        
        If p Is Nothing
 Then
            Console.WriteLine("No IPv4 information is available
 for this interface.")
            GoTo ContinueForEach1
        End If
        ' Display the IPv4 specific data.
        Console.WriteLine("  Index .............................
 : {0}", p.Index)
        Console.WriteLine("  MTU ...............................
 : {0}", p.Mtu)
        Console.WriteLine("  APIPA active.......................
 : {0}", p.IsAutomaticPrivateAddressingActive)
        Console.WriteLine("  APIPA enabled......................
 : {0}", p.IsAutomaticPrivateAddressingEnabled)
        Console.WriteLine("  Forwarding enabled.................
 : {0}", p.IsForwardingEnabled)
        Console.WriteLine("  Uses WINS .........................
 : {0}", p.UsesWins)
    ContinueForEach1:
    Next adapter

End Sub 'DisplayIPv4NetworkInterfaces

public static void DisplayIPv4NetworkInterfaces()
{
    NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces();
    IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
    Console.WriteLine("IPv4 interface information for {0}.{1}"
,
       properties.HostName, properties.DomainName);

    foreach (NetworkInterface adapter in nics)
    {
        // Only display informatin for interfaces that support IPv4.
        if (adapter.Supports(NetworkInterfaceComponent.IPv4) ==
 false)
        {
            continue;
        }
        Console.WriteLine();
        Console.WriteLine(adapter.Description);
        // Underline the description.
        Console.WriteLine(String.Empty.PadLeft(adapter.Description.Length,'='));
        IPInterfaceProperties adapterProperties = adapter.GetIPProperties();
        // Try to get the IPv4 interface properties.
        IPv4InterfaceProperties p = adapterProperties.GetIPv4Properties();
        
        if (p == null)
        {
            Console.WriteLine("No IPv4 information is available for
 this interface.");
            continue;
        }
        // Display the IPv4 specific data.
        Console.WriteLine("  Index ............................. : {0}",
 p.Index);
        Console.WriteLine("  MTU ............................... : {0}",
 p.Mtu);
        Console.WriteLine("  APIPA active....................... : {0}",
 
            p.IsAutomaticPrivateAddressingActive);
        Console.WriteLine("  APIPA enabled...................... : {0}",
 
            p.IsAutomaticPrivateAddressingEnabled);
        Console.WriteLine("  Forwarding enabled................. : {0}",
 
            p.IsForwardingEnabled);
         Console.WriteLine("  Uses WINS ......................... : {0}",
 
            p.UsesWins);
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPv4InterfaceProperties クラス
IPv4InterfaceProperties メンバ
System.Net.NetworkInformation 名前空間


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

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

辞書ショートカット

すべての辞書の索引

IPv4InterfaceProperties.IsAutomaticPrivateAddressingActive プロパティのお隣キーワード
検索ランキング

   

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



IPv4InterfaceProperties.IsAutomaticPrivateAddressingActive プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS