共用方式為


IPGlobalProperties.IsWinsProxy 屬性

定義

取得 Boolean 值,指定本機電腦是否當做 Windows 網際網路名稱服務 (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

屬性值

如果本機電腦是 WINS Proxy,則為 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 提供分散式資料庫,用於向IP位址對應註冊和查詢動態NetBIOS名稱。

適用於