C# Class PSHostsFile.Core.Remove

Inheritance: TransformOperation
显示文件 Open project: fschwiet/PSHostsFile Class Usage Examples

Public Methods

Method Description
GetRemoveTransformForHost ( string hostname ) : IEnumerable>.Func
RemoveFromFile ( Regex pattern, string hostsPath ) : void
RemoveFromFile ( string target, string hostsPath ) : void

Private Methods

Method Description
GetRemoveTransform ( bool>.Func doHostsMatch ) : IEnumerable>.Func

Method Details

GetRemoveTransformForHost() public static method

public static GetRemoveTransformForHost ( string hostname ) : IEnumerable>.Func
hostname string
return IEnumerable>.Func

RemoveFromFile() public method

public RemoveFromFile ( Regex pattern, string hostsPath ) : void
pattern System.Text.RegularExpressions.Regex
hostsPath string
return void

RemoveFromFile() public method

public RemoveFromFile ( string target, string hostsPath ) : void
target string
hostsPath string
return void