Property | Type | Description | |
---|---|---|---|
OrigContents | List |
Property | Type | Description | |
---|---|---|---|
Entries | IPAddress>.Dictionary | ||
HostFile | |||
Security | |||
WorldSid | System.Security.Principal.SecurityIdentifier |
Method | Description | |
---|---|---|
Get ( string Domain ) : |
Returns the IP address for the provided domain name
|
|
GetLines ( ) : IPAddress>.Dictionary |
Returns a list of all current hosts file lines
|
|
HasAnyEntry ( IEnumerable |
Returns whether the hostsfile contains any of the domain names provided
|
|
HasEntry ( string Domain ) : bool |
Returns whether the hostsfile contains the specified domain name
|
|
HostsFile ( ) : System | ||
Remove ( string Domain ) : bool |
Removes a domain name from the hosts file
|
|
RemoveAll ( IEnumerable |
Removes all of the specified domain names from the hosts file
|
|
Save ( ) : void |
Saves all currently set domains and IPs to the hosts file
|
|
Set ( string Domain, |
Sets a domain name with an IP in the hosts file
|
Method | Description | |
---|---|---|
ParseEntries ( ) : void |
public Get ( string Domain ) : |
||
Domain | string | The domain name |
return |
public HasAnyEntry ( IEnumerable |
||
Domains | IEnumerable |
An array of domain names to check for |
return | bool |
public HasEntry ( string Domain ) : bool | ||
Domain | string | The domain name |
return | bool |
public Remove ( string Domain ) : bool | ||
Domain | string | The domain name |
return | bool |
public RemoveAll ( IEnumerable |
||
Domains | IEnumerable |
|
return | bool |
public Set ( string Domain, |
||
Domain | string | The domain name |
Ip | The IP address | |
return | void |
protected FileSecurity,System.Security.AccessControl Security | ||
return |