IPGlobalProperties.GetIPGlobalProperties Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Yerel bilgisayarın ağ bağlantısı ve trafik istatistikleri hakkında bilgi sağlayan bir nesnesi alır.
public:
static System::Net::NetworkInformation::IPGlobalProperties ^ GetIPGlobalProperties();
[System.Runtime.Versioning.UnsupportedOSPlatform("illumos")]
[System.Runtime.Versioning.UnsupportedOSPlatform("solaris")]
public static System.Net.NetworkInformation.IPGlobalProperties GetIPGlobalProperties();
public static System.Net.NetworkInformation.IPGlobalProperties GetIPGlobalProperties();
[<System.Runtime.Versioning.UnsupportedOSPlatform("illumos")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("solaris")>]
static member GetIPGlobalProperties : unit -> System.Net.NetworkInformation.IPGlobalProperties
static member GetIPGlobalProperties : unit -> System.Net.NetworkInformation.IPGlobalProperties
Public Shared Function GetIPGlobalProperties () As IPGlobalProperties
Döndürülenler
IPGlobalProperties Yerel bilgisayar hakkında bilgi içeren bir nesne.
- Öznitelikler
Örnekler
Aşağıdaki kod örneği, yerel bilgisayar hakkındaki bilgileri görüntüler.
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);
Açıklamalar
Bu yöntem tarafından döndürülen nesnesi, sınıfından IPGlobalProperties türetilen sistem tarafından sağlanan bir türdür.