IPGlobalProperties.NodeType 屬性

定義

取得本機電腦的網路基本輸入輸出系統 (NetBIOS) 節點型別。

public:
 abstract property System::Net::NetworkInformation::NetBiosNodeType NodeType { System::Net::NetworkInformation::NetBiosNodeType get(); };
public abstract System.Net.NetworkInformation.NetBiosNodeType NodeType { get; }
member this.NodeType : System.Net.NetworkInformation.NetBiosNodeType
Public MustOverride ReadOnly Property NodeType As NetBiosNodeType

屬性值

NetBiosNodeType 值。

例外狀況

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

備註

節點類型會決定 NetBIOS 名稱解析為 IP 位址的方式。 如需詳細資訊,請參閱 NetBiosNodeType 類別概觀。

適用於