IPGlobalProperties.NodeType Proprietà

Definizione

Ottiene il tipo di nodo Network Basic Input/Output System (NetBIOS) del computer locale.

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

Valore della proprietà

Valore NetBiosNodeType.

Eccezioni

Errore di una chiamata di funzione Win32.

Esempio

Nell'esempio di codice seguente vengono visualizzate le informazioni di rete per il computer locale.

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

Commenti

Il tipo di nodo determina il modo in cui i nomi NetBIOS vengono risolti agli indirizzi IP. Per altre informazioni, vedere panoramica della NetBiosNodeType classe.

Si applica a