Bewerken

Delen via


IPGlobalProperties.IsWinsProxy Property

Definition

Gets a Boolean value that specifies whether the local computer is acting as a Windows Internet Name Service (WINS) proxy.

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

Property Value

true if the local computer is a WINS proxy; otherwise, false.

Attributes

Exceptions

A Win32 function call failed.

Examples

The following code example displays network information for the local computer.

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

Remarks

WINS provides a distributed database for registering and querying dynamic NetBIOS names to IP address mappings.

Applies to