Aracılığıyla paylaş


Dns.Resolve(String) Yöntem

Tanım

Dikkat

Resolve has been deprecated. Use GetHostEntry instead.

Dikkat

Resolve is obsoleted for this type, please use GetHostEntry instead. https://go.microsoft.com/fwlink/?linkid=14202

Dikkat

Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202

Dns ana bilgisayar adını veya IP adresini bir IPHostEntry örneğe çözümler.

public:
 static System::Net::IPHostEntry ^ Resolve(System::String ^ hostName);
[System.Obsolete("Resolve has been deprecated. Use GetHostEntry instead.")]
public static System.Net.IPHostEntry Resolve(string hostName);
[System.Obsolete("Resolve is obsoleted for this type, please use GetHostEntry instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.IPHostEntry Resolve(string hostName);
[System.Obsolete("Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Net.IPHostEntry Resolve(string hostName);
public static System.Net.IPHostEntry Resolve(string hostName);
[<System.Obsolete("Resolve has been deprecated. Use GetHostEntry instead.")>]
static member Resolve : string -> System.Net.IPHostEntry
[<System.Obsolete("Resolve is obsoleted for this type, please use GetHostEntry instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
static member Resolve : string -> System.Net.IPHostEntry
[<System.Obsolete("Resolve is obsoleted for this type, please use GetHostEntry instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
static member Resolve : string -> System.Net.IPHostEntry
static member Resolve : string -> System.Net.IPHostEntry
Public Shared Function Resolve (hostName As String) As IPHostEntry

Parametreler

hostName
String

DNS stili bir ana bilgisayar adı veya IP adresi.

Döndürülenler

IPHostEntry içinde hostNamebelirtilen konak hakkında adres bilgilerini içeren bir örnek.

Öznitelikler

Özel durumlar

hostName, null'e eşittir.

uzunluğu hostName 255 karakterden uzundur.

çözümlendiğinde hostNamebir hatayla karşılaşıldı.

Açıklamalar

yöntemi, Resolve bir ana bilgisayar adı veya IP adresiyle ilişkilendirilmiş IP adresi için bir DNS sunucusunu sorgular.

Birden çok IP adresiyle ilişkili DNS stili bir ana bilgisayar adı olduğunda hostName , yalnızca bu ana bilgisayar adına çözümlenen ilk IP adresi döndürülür.

Ipv6Element.Enabled özelliği olarak ayarlanırsatrueAliases, döndürülen örneğin özelliği IPHostEntry bu yöntemle doldurulmazsa ve her zaman boş kalır.

Uyarı

Bu üye, uygulamanızda ağ izlemeyi etkinleştirdiğinizde izleme bilgilerini yayar. Daha fazla bilgi için bkz. .NET Framework'te Ağ İzleme.

Şunlara uygulanır