IPGlobalProperties.NodeType 属性

定义

获取本地计算机的网络基本输入/输出系统 (NetBIOS) 节点类型。Gets the Network Basic Input/Output System (NetBIOS) node type of the local computer.

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

一个 NetBiosNodeType 值。A NetBiosNodeType value.

例外

Win32 函数调用失败。A Win32 function call failed.

示例

下面的代码示例显示了本地计算机的网络信息。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);

注解

节点类型决定了将 NetBIOS 名称解析为 IP 地址的方式。The node type determines the way in which NetBIOS names are resolved to IP addresses. 有关其他信息,请参阅 NetBiosNodeType 类概述。For additional information, see the NetBiosNodeType class overview.

适用于