프로퍼티 | 타입 | 설명 | |
---|---|---|---|
OrigContents | List |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Entries | IPAddress>.Dictionary | ||
HostFile | |||
Security | |||
WorldSid | System.Security.Principal.SecurityIdentifier |
메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
ParseEntries ( ) : void |
public Get ( string Domain ) : |
||
Domain | string | The domain name |
리턴 |
public HasAnyEntry ( IEnumerable |
||
Domains | IEnumerable |
An array of domain names to check for |
리턴 | bool |
public Set ( string Domain, |
||
Domain | string | The domain name |
Ip | The IP address | |
리턴 | void |
protected FileSecurity,System.Security.AccessControl Security | ||
리턴 |