IPGlobalProperties.DhcpScopeName プロパティ
アセンブリ: System (system.dll 内)
構文
コンピュータの DHCP スコープ名を格納している String インスタンス。
解説
使用例
ローカル コンピュータのネットワーク情報を表示するコード例を次に示します。
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);
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- IPGlobalProperties.DhcpScopeName プロパティのページへのリンク