IPGlobalProperties.DhcpScopeName Właściwość

Definicja

Pobiera nazwę zakresu protokołu 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

Wartość właściwości

String Wystąpienie zawierające nazwę zakresu DHCP komputera.

Atrybuty

Wyjątki

Wywołanie funkcji Win32 nie powiodło się.

Przykłady

Poniższy przykład kodu przedstawia informacje o sieci komputera lokalnego.

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);

Uwagi

Zakres DHCP to grupa administracyjna komputerów sieciowych, które znajdują się w tej samej podsieci.

Dotyczy