C# Класс FuncTest.IIS.IisWebSite

The IIS web application.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddBinding ( string bindingInfo, string bindingProtocol ) : void

Adds binding.

AddToIisIfNotExists ( ) : void

Adds site to IIS if not exists (constructor adds site by default).

ClearBindings ( ) : void

Clears all bindings.

Dispose ( ) : void

Disposes the instance of IIS Web Site and frees the underlying resources, can reduce the amount of the memory leak in Server Manager

IisWebSite ( Site iisSite ) : System

Initializes a new instance of the IisWebSite class.

IisWebSite ( string siteName, string sitePhysicalPath, int sitePort, IisApplicationPool pool ) : System

Initializes a new instance of the IisWebSite class.

Remove ( ) : void

Removes the Site from IIS.

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

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

Adds binding.
public AddBinding ( string bindingInfo, string bindingProtocol ) : void
bindingInfo string /// The binding info. ///
bindingProtocol string /// The binding protocol. ///
Результат void

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

Adds site to IIS if not exists (constructor adds site by default).
public AddToIisIfNotExists ( ) : void
Результат void

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

Clears all bindings.
public ClearBindings ( ) : void
Результат void

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

Disposes the instance of IIS Web Site and frees the underlying resources, can reduce the amount of the memory leak in Server Manager
public Dispose ( ) : void
Результат void

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

Initializes a new instance of the IisWebSite class.
public IisWebSite ( Site iisSite ) : System
iisSite Microsoft.Web.Administration.Site /// The IIS site. ///
Результат System

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

Initializes a new instance of the IisWebSite class.
public IisWebSite ( string siteName, string sitePhysicalPath, int sitePort, IisApplicationPool pool ) : System
siteName string /// The site Name. ///
sitePhysicalPath string /// The site Physical Path. ///
sitePort int /// The site Port. ///
pool IisApplicationPool /// The pool. ///
Результат System

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

Removes the Site from IIS.
public Remove ( ) : void
Результат void