C# 클래스 HostsEditor.Models.HostEntry

파일 보기 프로젝트 열기: ViewModelSoftware/HostsEditor 1 사용 예제들

공개 메소드들

메소드 설명
GetRecord ( ) : string

Returns a valid formatted host entry for writing to the hosts file.

NewHostEntry ( string hostname, string ipAddress ) : HostEntry
Parse ( string hostEntryLine ) : HostEntry

Parses a line from the host file into an HostEntry object.

비공개 메소드들

메소드 설명
HostEntry ( ) : System
HostEntry ( string hostEntryLine ) : System

메소드 상세

GetRecord() 공개 메소드

Returns a valid formatted host entry for writing to the hosts file.
public GetRecord ( ) : string
리턴 string

NewHostEntry() 공개 정적인 메소드

public static NewHostEntry ( string hostname, string ipAddress ) : HostEntry
hostname string
ipAddress string
리턴 HostEntry

Parse() 공개 정적인 메소드

Parses a line from the host file into an HostEntry object.
public static Parse ( string hostEntryLine ) : HostEntry
hostEntryLine string The line from the hosts file to parse.
리턴 HostEntry