mscorlib(4.0.0.0) API with additions
|
Provides simple domain name resolution functionality. More...
Static Public Member Functions | |
static IPHostEntry | GetHostByName (string hostName) |
Gets the DNS information for the specified DNS host name. More... | |
static IPHostEntry | GetHostByAddress (string address) |
Creates an T:System.Net.IPHostEntry instance from an IP address. More... | |
static IPHostEntry | GetHostByAddress (IPAddress address) |
Creates an T:System.Net.IPHostEntry instance from the specified T:System.Net.IPAddress. More... | |
static string | GetHostName () |
Gets the host name of the local computer. More... | |
static IPHostEntry | Resolve (string hostName) |
Resolves a DNS host name or IP address to an T:System.Net.IPHostEntry instance. More... | |
static IAsyncResult | BeginGetHostByName (string hostName, AsyncCallback requestCallback, object stateObject) |
Begins an asynchronous request for T:System.Net.IPHostEntry information about the specified DNS host name. More... | |
static IPHostEntry | EndGetHostByName (IAsyncResult asyncResult) |
Ends an asynchronous request for DNS information. More... | |
static IPHostEntry | GetHostEntry (string hostNameOrAddress) |
Resolves a host name or IP address to an T:System.Net.IPHostEntry instance. More... | |
static IPHostEntry | GetHostEntry (IPAddress address) |
Resolves an IP address to an T:System.Net.IPHostEntry instance. More... | |
static IPAddress [] | GetHostAddresses (string hostNameOrAddress) |
Returns the Internet Protocol (IP) addresses for the specified host. More... | |
static IAsyncResult | BeginGetHostEntry (string hostNameOrAddress, AsyncCallback requestCallback, object stateObject) |
Asynchronously resolves a host name or IP address to an T:System.Net.IPHostEntry instance. More... | |
static IAsyncResult | BeginGetHostEntry (IPAddress address, AsyncCallback requestCallback, object stateObject) |
Asynchronously resolves an IP address to an T:System.Net.IPHostEntry instance. More... | |
static IPHostEntry | EndGetHostEntry (IAsyncResult asyncResult) |
Ends an asynchronous request for DNS information. More... | |
static IAsyncResult | BeginGetHostAddresses (string hostNameOrAddress, AsyncCallback requestCallback, object state) |
Asynchronously returns the Internet Protocol (IP) addresses for the specified host. More... | |
static IPAddress [] | EndGetHostAddresses (IAsyncResult asyncResult) |
Ends an asynchronous request for DNS information. More... | |
static IAsyncResult | BeginResolve (string hostName, AsyncCallback requestCallback, object stateObject) |
Begins an asynchronous request to resolve a DNS host name or IP address to an T:System.Net.IPAddress instance. More... | |
static IPHostEntry | EndResolve (IAsyncResult asyncResult) |
Ends an asynchronous request for DNS information. More... | |
static Task< IPAddress[]> | GetHostAddressesAsync (string hostNameOrAddress) |
Returns the Internet Protocol (IP) addresses for the specified host as an asynchronous operation. More... | |
static Task< IPHostEntry > | GetHostEntryAsync (IPAddress address) |
Resolves an IP address to an T:System.Net.IPHostEntry instance as an asynchronous operation. More... | |
static Task< IPHostEntry > | GetHostEntryAsync (string hostNameOrAddress) |
Resolves a host name or IP address to an T:System.Net.IPHostEntry instance as an asynchronous operation. More... | |
|
static |
Asynchronously returns the Internet Protocol (IP) addresses for the specified host.
hostNameOrAddress | The host name or IP address to resolve. |
requestCallback | An T:System.AsyncCallback delegate that references the method to invoke when the operation is complete. |
state | A user-defined object that contains information about the operation. This object is passed to the requestCallback delegate when the operation is complete. |
T:System.ArgumentNullException | hostNameOrAddress is null . |
T:System.ArgumentOutOfRangeException | The length of hostNameOrAddress is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error is encountered when resolving hostNameOrAddress . |
T:System.ArgumentException | hostNameOrAddress is an invalid IP address. |
|
static |
Begins an asynchronous request for T:System.Net.IPHostEntry information about the specified DNS host name.
hostName | The DNS name of the host. |
requestCallback | An T:System.AsyncCallback delegate that references the method to invoke when the operation is complete. |
stateObject | A user-defined object that contains information about the operation. This object is passed to the requestCallback delegate when the operation is complete. |
T:System.ArgumentNullException | hostName is null . |
T:System.Net.Sockets.SocketException | An error was encountered executing the DNS query. |
|
static |
Asynchronously resolves a host name or IP address to an T:System.Net.IPHostEntry instance.
hostNameOrAddress | The host name or IP address to resolve. |
requestCallback | An T:System.AsyncCallback delegate that references the method to invoke when the operation is complete. |
stateObject | A user-defined object that contains information about the operation. This object is passed to the requestCallback delegate when the operation is complete. |
T:System.ArgumentNullException | hostNameOrAddress is null . |
T:System.ArgumentOutOfRangeException | The length of hostNameOrAddress is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error is encountered when resolving hostNameOrAddress . |
T:System.ArgumentException | hostNameOrAddress is an invalid IP address. |
|
static |
Asynchronously resolves an IP address to an T:System.Net.IPHostEntry instance.
address | The IP address to resolve. |
requestCallback | An T:System.AsyncCallback delegate that references the method to invoke when the operation is complete. |
stateObject | A user-defined object that contains information about the operation. This object is passed to the requestCallback delegate when the operation is complete. |
T:System.ArgumentNullException | address is null . |
T:System.Net.Sockets.SocketException | An error is encountered when resolving address . |
T:System.ArgumentException | address is an invalid IP address. |
|
static |
Begins an asynchronous request to resolve a DNS host name or IP address to an T:System.Net.IPAddress instance.
hostName | The DNS name of the host. |
requestCallback | An T:System.AsyncCallback delegate that references the method to invoke when the operation is complete. |
stateObject | A user-defined object that contains information about the operation. This object is passed to the requestCallback delegate when the operation is complete. |
T:System.ArgumentNullException | hostName is null . |
T:System.Net.Sockets.SocketException | The caller does not have permission to access DNS information. |
|
static |
Ends an asynchronous request for DNS information.
asyncResult | An T:System.IAsyncResult instance returned by a call to the M:System.Net.Dns.BeginGetHostAddresses(System.String,System.AsyncCallback,System.Object) method. |
|
static |
Ends an asynchronous request for DNS information.
asyncResult | An T:System.IAsyncResult instance that is returned by a call to the M:System.Net.Dns.BeginGetHostByName(System.String,System.AsyncCallback,System.Object) method. |
T:System.ArgumentNullException | asyncResult is null . |
|
static |
Ends an asynchronous request for DNS information.
asyncResult | An T:System.IAsyncResult instance returned by a call to an Overload:System.Net.Dns.BeginGetHostEntry method. |
T:System.ArgumentNullException | asyncResult is null . |
|
static |
Ends an asynchronous request for DNS information.
asyncResult | An T:System.IAsyncResult instance that is returned by a call to the M:System.Net.Dns.BeginResolve(System.String,System.AsyncCallback,System.Object) method. |
T:System.ArgumentNullException | asyncResult is null . |
|
static |
Returns the Internet Protocol (IP) addresses for the specified host.
hostNameOrAddress | The host name or IP address to resolve. |
T:System.ArgumentNullException | hostNameOrAddress is null . |
T:System.ArgumentOutOfRangeException | The length of hostNameOrAddress is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error is encountered when resolving hostNameOrAddress . |
T:System.ArgumentException | hostNameOrAddress is an invalid IP address. |
Returns the Internet Protocol (IP) addresses for the specified host as an asynchronous operation.
hostNameOrAddress | The host name or IP address to resolve. |
T:System.ArgumentNullException | hostNameOrAddress is null . |
T:System.ArgumentOutOfRangeException | The length of hostNameOrAddress is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error is encountered when resolving hostNameOrAddress . |
T:System.ArgumentException | hostNameOrAddress is an invalid IP address. |
|
static |
Creates an T:System.Net.IPHostEntry instance from an IP address.
address | An IP address. |
T:System.ArgumentNullException | address is null . |
T:System.Net.Sockets.SocketException | An error is encountered when resolving address . |
T:System.FormatException | address is not a valid IP address. |
|
static |
Creates an T:System.Net.IPHostEntry instance from the specified T:System.Net.IPAddress.
address | An T:System.Net.IPAddress. |
T:System.ArgumentNullException | address is null . |
T:System.Net.Sockets.SocketException | An error is encountered when resolving address . |
|
static |
Gets the DNS information for the specified DNS host name.
hostName | The DNS name of the host. |
T:System.ArgumentNullException | hostName is null . |
T:System.ArgumentOutOfRangeException | The length of hostName is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error is encountered when resolving hostName . |
|
static |
Resolves a host name or IP address to an T:System.Net.IPHostEntry instance.
hostNameOrAddress | The host name or IP address to resolve. |
T:System.ArgumentNullException | The hostNameOrAddress parameter is null . |
T:System.ArgumentOutOfRangeException | The length of hostNameOrAddress parameter is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error was encountered when resolving the hostNameOrAddress parameter. |
T:System.ArgumentException | The hostNameOrAddress parameter is an invalid IP address. |
|
static |
Resolves an IP address to an T:System.Net.IPHostEntry instance.
address | An IP address. |
T:System.ArgumentNullException | address is null . |
T:System.Net.Sockets.SocketException | An error is encountered when resolving address . |
T:System.ArgumentException | address is an invalid IP address. |
|
static |
Resolves an IP address to an T:System.Net.IPHostEntry instance as an asynchronous operation.
address | An IP address. |
T:System.ArgumentNullException | address is null . |
T:System.Net.Sockets.SocketException | An error is encountered when resolving address . |
T:System.ArgumentException | address is an invalid IP address. |
|
static |
Resolves a host name or IP address to an T:System.Net.IPHostEntry instance as an asynchronous operation.
hostNameOrAddress | The host name or IP address to resolve. |
T:System.ArgumentNullException | The hostNameOrAddress parameter is null . |
T:System.ArgumentOutOfRangeException | The length of hostNameOrAddress parameter is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error was encountered when resolving the hostNameOrAddress parameter. |
T:System.ArgumentException | The hostNameOrAddress parameter is an invalid IP address. |
|
static |
|
static |
Resolves a DNS host name or IP address to an T:System.Net.IPHostEntry instance.
hostName | A DNS-style host name or IP address. |
T:System.ArgumentNullException | hostName is null . |
T:System.ArgumentOutOfRangeException | The length of hostName is greater than 255 characters. |
T:System.Net.Sockets.SocketException | An error is encountered when resolving hostName . |