Show / Hide Table of Contents

Class NetHelper

Helper class for network interactions.

Inheritance
System.Object
NetHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
public static class NetHelper

Methods

View Source

GetHostInfo(String, Boolean)

Gets host network info for a host name or IP address.

Declaration
public static HostInfo GetHostInfo(string nameOrIpAddress, bool resolveIPAddress = false)
Parameters
Type Name Description
System.String nameOrIpAddress

The host name or IP address to get complete host info for.

System.Boolean resolveIPAddress

Whether the IP address should resolve to a DNS name.

Returns
Type Description
HostInfo

Returns a HostInfo object.

View Source

GetHostInfoAsync(String, Boolean)

Gets host network info for a host name or IP address.

Declaration
public static async Task<HostInfo> GetHostInfoAsync(string nameOrIpAddress, bool resolveIPAddress = false)
Parameters
Type Name Description
System.String nameOrIpAddress

The host name or IP address to get complete host info for.

System.Boolean resolveIPAddress

Whether the IP address should resolve to a DNS name.

Returns
Type Description
System.Threading.Tasks.Task<HostInfo>

Returns a HostInfo object.

  • View Source
In This Article
Back to top Generated by DocFX