IPGlobalProperties.DhcpScopeName Proprietà

Definizione

Ottiene il nome dell'ambito DHCP (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

Valore della proprietà

String Istanza che contiene il nome dell'ambito DHCP del computer.

Attributi

Eccezioni

Chiamata di funzione Win32 non riuscita.

Esempio

Nell'esempio di codice seguente vengono visualizzate le informazioni di rete per il computer locale.

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

Commenti

Un ambito DHCP è un raggruppamento amministrativo di computer in rete che si trovano nella stessa subnet.

Si applica a