IPGlobalProperties.DhcpScopeName Egenskap

Definition

Hämtar DHCP-omfångsnamnet (Dynamic Host Configuration Protocol).

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

Egenskapsvärde

En String instans som innehåller datorns DHCP-omfångsnamn.

Attribut

Undantag

Ett Win32-funktionsanrop misslyckades.

Exempel

I följande kodexempel visas nätverksinformation för den lokala datorn.

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

Kommentarer

Ett DHCP-omfång är en administrativ gruppering av nätverksdatorer som finns i samma undernät.

Gäller för