IPGlobalProperties.DhcpScopeName プロパティ

定義

DHCP (Dynamic Host Configuration Protocol) スコープ名を取得します。

public:
 abstract property System::String ^ DhcpScopeName { System::String ^ get(); };
public abstract string DhcpScopeName { get; }
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract string DhcpScopeName { get; }
member this.DhcpScopeName : string
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.DhcpScopeName : string
Public MustOverride ReadOnly Property DhcpScopeName As String

プロパティ値

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 );
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 スコープは、同じサブネット上にあるネットワークコンピューターの管理グループです。

適用対象