Bagikan melalui


IPGlobalProperties.IsWinsProxy Properti

Definisi

Boolean Mendapatkan nilai yang menentukan apakah komputer lokal bertindak sebagai proksi Windows Internet Name Service (WINS).

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

Nilai Properti

true jika komputer lokal adalah proksi WINS; jika tidak, false.

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

WINS menyediakan database terdistribusi untuk mendaftarkan dan mengkueri nama NetBIOS dinamis ke pemetaan alamat IP.

Berlaku untuk