UtilHostsGetMappingFromHostname Method

Gets a HostsMappingInfo instance containing the mapping info of a hostname.

Definition

Namespace: DevCase.Core.Networking.Security
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static HostsMappingInfo GetMappingFromHostname(
	string hostname
)

Parameters

hostname  String

[Missing <param name="hostname"/> documentation for "M:DevCase.Core.Networking.Security.UtilHosts.GetMappingFromHostname(System.String)"]

Return Value

HostsMappingInfo

[Missing <returns> documentation for "M:DevCase.Core.Networking.Security.UtilHosts.GetMappingFromHostname(System.String)"]

Exceptions

FileNotFoundException Hosts file not found.
Exception Hostname is not mapped.

See Also