C# Класс HostsEditor.Models.HostEntry

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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