C# 클래스 PSHostsFile.HostsFile

파일 보기 프로젝트 열기: fschwiet/PSHostsFile

공개 메소드들

메소드 설명
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

메소드 상세

Get() 공개 정적인 메소드

public static Get ( string filepath = null ) : IEnumerable
filepath string
리턴 IEnumerable

GetHostLine() 공개 정적인 메소드

public static GetHostLine ( string hostName, string address ) : string
hostName string
address string
리턴 string

GetHostsPath() 공개 정적인 메소드

public static GetHostsPath ( ) : string
리턴 string

GetSetHostTransform() 공개 정적인 메소드

public static GetSetHostTransform ( IEnumerable contents, string hostName, string address ) : IEnumerable
contents IEnumerable
hostName string
address string
리턴 IEnumerable

Remove() 공개 정적인 메소드

public static Remove ( Regex pattern ) : void
pattern System.Text.RegularExpressions.Regex
리턴 void

Remove() 공개 정적인 메소드

public static Remove ( string hostName ) : void
hostName string
리턴 void

Set() 공개 정적인 메소드

public static Set ( IEnumerable entries, string filepath = null ) : void
entries IEnumerable
filepath string
리턴 void

Set() 공개 정적인 메소드

public static Set ( string hostname, string address, string filepath = null ) : void
hostname string
address string
filepath string
리턴 void