IPGlobalProperties.IsWinsProxy 属性

定义

获取 Boolean 值,该值指定本地计算机是否充当 Windows Internet 名称服务 (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

属性值

如果本地计算机是 WINS 代理,则为 true,否则为 false

属性

例外

Win32 函数调用失败。

示例

下面的代码示例显示本地计算机的网络信息。

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

注解

WINS 提供了一个分布式数据库,用于将动态 NetBIOS 名称注册和查询到 IP 地址映射。

适用于