C# Class PSHostsFile.HostsFile

Afficher le fichier Open project: fschwiet/PSHostsFile

Méthodes publiques

Méthode Description
Get ( string filepath = null ) : IEnumerable
GetHostLine ( string hostName, string address ) : string
GetHostsPath ( ) : string
GetSetHostTransform ( IEnumerable contents, string hostName, string address ) : IEnumerable
Remove ( Regex pattern ) : void
Remove ( string hostName ) : void
Set ( IEnumerable entries, string filepath = null ) : void
Set ( string hostname, string address, string filepath = null ) : void

Method Details

Get() public static méthode

public static Get ( string filepath = null ) : IEnumerable
filepath string
Résultat IEnumerable

GetHostLine() public static méthode

public static GetHostLine ( string hostName, string address ) : string
hostName string
address string
Résultat string

GetHostsPath() public static méthode

public static GetHostsPath ( ) : string
Résultat string

GetSetHostTransform() public static méthode

public static GetSetHostTransform ( IEnumerable contents, string hostName, string address ) : IEnumerable
contents IEnumerable
hostName string
address string
Résultat IEnumerable

Remove() public static méthode

public static Remove ( Regex pattern ) : void
pattern System.Text.RegularExpressions.Regex
Résultat void

Remove() public static méthode

public static Remove ( string hostName ) : void
hostName string
Résultat void

Set() public static méthode

public static Set ( IEnumerable entries, string filepath = null ) : void
entries IEnumerable
filepath string
Résultat void

Set() public static méthode

public static Set ( string hostname, string address, string filepath = null ) : void
hostname string
address string
filepath string
Résultat void