C# Класс Canonicalize.Strategies.HostStrategy

URL canonicalization strategy enforcing use of a specific DNS host name or IP address.
Наследование: IUrlStrategy
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Apply ( UriBuilder uri ) : void

Replaces the host part of the URL with the canonical host.

HostStrategy ( string host ) : System

Initializes a HostStrategy with a specific DNS host name or IP address.

Описание методов

Apply() публичный Метод

Replaces the host part of the URL with the canonical host.
public Apply ( UriBuilder uri ) : void
uri System.UriBuilder The URL to be canonicalized.
Результат void

HostStrategy() публичный Метод

Initializes a HostStrategy with a specific DNS host name or IP address.
public HostStrategy ( string host ) : System
host string Canonical DNS host name or IP address.
Результат System