IPGlobalProperties.IsWinsProxy 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會獲得一個 Boolean 值,指定本地電腦是否作為Windows網際網路名稱服務(WINS)代理。
public:
abstract property bool IsWinsProxy { bool get(); };
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
public abstract bool IsWinsProxy { get; }
public abstract bool IsWinsProxy { get; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
member this.IsWinsProxy : bool
member this.IsWinsProxy : bool
Public MustOverride ReadOnly Property IsWinsProxy As Boolean
屬性值
true若本地電腦為 WINS 代理;否則,。 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);
備註
WINS 提供分散式資料庫,用於註冊及查詢動態 NetBIOS 名稱與 IP 位址映射。