Bagikan melalui


IPGlobalProperties.DhcpScopeName Properti

Definisi

Mendapatkan nama cakupan Dynamic Host Configuration Protocol (DHCP).

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

Nilai Properti

String Instans yang berisi nama cakupan DHCP komputer.

Atribut

Pengecualian

Panggilan fungsi Win32 gagal.

Contoh

Contoh kode berikut menampilkan informasi jaringan untuk komputer lokal.

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

Keterangan

Cakupan DHCP adalah pengelompokan administratif komputer jaringan yang berada di subnet yang sama.

Berlaku untuk