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

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

IPInterfaceProperties.IsDnsEnabled プロパティ

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

このインターフェイスドメイン ネーム システム (DNS) サーバー名前解決クエリ送信するように構成されているかどうかを示す Boolean 値を取得します

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

Public MustOverride ReadOnly
 Property IsDnsEnabled As Boolean
Dim instance As IPInterfaceProperties
Dim value As Boolean

value = instance.IsDnsEnabled
public abstract bool IsDnsEnabled { get;
 }
/** @property */
public abstract boolean get_IsDnsEnabled ()

プロパティ
このコンピュータDNS サーバー使用してホスト名解決するように構成されている場合trueそれ以外場合false

解説解説
使用例使用例

このプロパティの値を表示するコード例次に示します

Public Shared Sub DisplayDnsConfiguration()
 
    Dim adapters As NetworkInterface() = NetworkInterface.GetAllNetworkInterfaces()
    Dim adapter As NetworkInterface
    For Each adapter In
  adapters
        Dim properties As IPInterfaceProperties
 = adapter.GetIPProperties()
        Console.WriteLine(adapter.Description)
        Console.WriteLine("  DNS suffix.................................
 :{0}", properties.DnsSuffix)
        Console.WriteLine("  DNS enabled .............................
 : {0}", properties.IsDnsEnabled)
        Console.WriteLine("  Dynamically configured DNS ..............
 : {0}", properties.IsDynamicDnsEnabled)
    Next adapter

End Sub 'DisplayDnsConfiguration

public static void DisplayDnsConfiguration()
{
    NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces();
    foreach (NetworkInterface adapter in adapters)
    {
        IPInterfaceProperties properties = adapter.GetIPProperties();
        Console.WriteLine(adapter.Description);
        Console.WriteLine("  DNS suffix................................. :{0}"
,
            properties.DnsSuffix);
        Console.WriteLine("  DNS enabled ............................. : {0}",
 
            properties.IsDnsEnabled);
        Console.WriteLine("  Dynamically configured DNS .............. : {0}",
 
            properties.IsDynamicDnsEnabled);
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
IPInterfaceProperties クラス
IPInterfaceProperties メンバ
System.Net.NetworkInformation 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS