Class LocalHostSection
Returned by ListLocalHostsSections() holding information about a named section of host entries within the local $/etc/hosts file.
Namespace: Neon.Net
Assembly: Neon.Common.dll
Syntax
public class LocalHostSection
Constructors
LocalHostSection(string, Dictionary<string, IPAddress>)
Constructor.
Declaration
public LocalHostSection(string name, Dictionary<string, IPAddress> hostEntries)
Parameters
Type | Name | Description |
---|---|---|
string | name | Identifies the section. |
Dictionary<string, IPAddress> | hostEntries | The dictionary of hostname/address entries. |
Properties
HostEntries
Returns the dictionary of hostname/address entries.
Declaration
public Dictionary<string, IPAddress> HostEntries { get; }
Property Value
Type | Description |
---|---|
Dictionary<string, IPAddress> |
Name
Returns the section name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |