C# Class HostsEditor.Models.HostsFile

Show file Open project: ViewModelSoftware/HostsEditor Class Usage Examples

Public Properties

Property Type Description
AppDataPath string
CommonAppData string
HostsFileBackupPath string
HostsFileDirectory string
HostsFilePath string
TempHostsFilePath string

Public Methods

Method Description
Add ( HostEntry host ) : void
HostsFile ( string hostsFilePath ) : System
Remove ( HostEntry host ) : void
Save ( ) : bool

Private Methods

Method Description
ElevatedCopy ( string source, string destination ) : bool

Method Details

Add() public method

public Add ( HostEntry host ) : void
host HostEntry
return void

HostsFile() public method

public HostsFile ( string hostsFilePath ) : System
hostsFilePath string
return System

Remove() public method

public Remove ( HostEntry host ) : void
host HostEntry
return void

Save() public method

public Save ( ) : bool
return bool

Property Details

AppDataPath public static property

public static string AppDataPath
return string

CommonAppData public static property

public static string CommonAppData
return string

HostsFileBackupPath public static property

public static string HostsFileBackupPath
return string

HostsFileDirectory public static property

public static string HostsFileDirectory
return string

HostsFilePath public static property

public static string HostsFilePath
return string

TempHostsFilePath public static property

public static string TempHostsFilePath
return string