Class LocalNetwork
Local network utility methods.
Inheritance
System.Object
LocalNetwork
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class LocalNetwork
Methods
GetAddressType(String)
Gets the type of the address.
Declaration
public static AddressType GetAddressType(string ipAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The IP address. |
Returns
Type | Description |
---|---|
AddressType |
GetIPAddresses(AddressType[])
Gets a list of local IP addresses (excluding loopback).
Declaration
public static string[] GetIPAddresses(AddressType[] addressTypes)
Parameters
Type | Name | Description |
---|---|---|
AddressType[] | addressTypes | The address types. |
Returns
Type | Description |
---|---|
System.String[] |
GetIPAddresses(AddressType[], Boolean)
Gets a list of local IP addresses (excluding loopback).
Declaration
public static string[] GetIPAddresses(AddressType[] addressTypes, bool allowPrivate)
Parameters
Type | Name | Description |
---|---|---|
AddressType[] | addressTypes | The address types. |
System.Boolean | allowPrivate | Whether to include private addresses. |
Returns
Type | Description |
---|---|
System.String[] |