IPGlobalProperties.IsWinsProxy Właściwość

Definicja

Pobiera wartość określającą Boolean , czy komputer lokalny działa jako serwer proxy usługi nazw internetowych systemu Windows (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

Wartość właściwości

true jeśli komputer lokalny jest serwerem proxy WINS; w przeciwnym razie , false.

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

Usługa WINS udostępnia rozproszoną bazę danych do rejestrowania i wykonywania zapytań dotyczących dynamicznych nazw NetBIOS na mapowania adresów IP.

Dotyczy