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

一个 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 类概述。

适用于