IPGlobalProperties.DhcpScopeName プロパティ

定義

動的ホスト構成プロトコル (DHCP) スコープ名を取得します。

public:
 abstract property System::String ^ DhcpScopeName { System::String ^ get(); };
public abstract string DhcpScopeName { get; }
member this.DhcpScopeName : string
Public MustOverride ReadOnly Property DhcpScopeName As String

プロパティ値

コンピューターの DHCP スコープ名を含む String インスタンス。

例外

Win32 関数呼び出しに失敗しました。

次のコード例では、ローカル コンピューターのネットワーク情報を表示します。

IPGlobalProperties properties = IPGlobalProperties.GetIPGlobalProperties();
Console.WriteLine("Computer name: {0}", properties.HostName);
Console.WriteLine("Domain name:   {0}", properties.DomainName);
Console.WriteLine("Node type:     {0:f}", properties.NodeType);
Console.WriteLine("DHCP scope:    {0}", properties.DhcpScopeName);
Console.WriteLine("WINS proxy?    {0}", properties.IsWinsProxy);

注釈

DHCP スコープは、同じサブネット上にあるネットワーク コンピューターの管理グループです。

適用対象