C# Класс WixSharp.WebSite

This class defines website attributes. It is a close equivalent of WebSite WiX element.
Наследование: WixEntity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AddressesDefinition string
Description string
InstallWebSite bool

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

Метод Описание
WebSite ( string name ) : System

Initializes a new instance of the WebSite class.

WebSite ( string name, string addressDefinition ) : System

Collection of T:WebSite.Certificate associated with website.

Initializes a new instance of the WebSite class.

WebSite ( string name, string addressDefinition, string description ) : System

Initializes a new instance of the WebSite class.

Приватные методы

Метод Описание
ProcessAddressesDefinition ( ) : void

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

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

Initializes a new instance of the WebSite class.
public WebSite ( string name ) : System
name string The name.
Результат System

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

Collection of T:WebSite.Certificate associated with website. Initializes a new instance of the WebSite class.
public WebSite ( string name, string addressDefinition ) : System
name string The name.
addressDefinition string The address definition.
Результат System

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

Initializes a new instance of the WebSite class.
public WebSite ( string name, string addressDefinition, string description ) : System
name string The name.
addressDefinition string The address definition.
description string The description.
Результат System

Описание свойств

AddressesDefinition публичное свойство

Specification for auto-generating the T:WebSite.WebAddresses collection.

If AddressesDefinition is specified, the existing content of Addresses will be ignored and replaced with the auto-generated one at compile time.

public string AddressesDefinition
Результат string

Description публичное свойство

This is the name of the web site that will show up in the IIS management console.
public string Description
Результат string

InstallWebSite публичное свойство

Indicates if the WebSite is to be installed (created on IIS) or existing WebSite should be used to install the corresponding WebApplication. The default InstallWebSite value is false

Developers should be aware of the WebSite installation model imposed by WiX/MSI and use InstallWebSite carefully.

If InstallWebSite value is set to false the parent WebApplication (T:WixSharp.IISVirtualDir) will be installed in the brand new (freshly created) WebSite or in the existing one if a site with the same address/port combination already exists on IIS). The undesirable side affect of this deployment scenario is that if the existing WebSite was used to install the WebApplication it will be deleted on IIS during uninstallation even if this WebSite has other WebApplications installed.

The "safer" option is to set InstallWebSite value to true (default value). In this case the WebApplication will be installed in an existing WebSite with matching address/port. If the match is not found the installation will fail. During the uninstallation only installed WebApplication will be removed from IIS.

public bool InstallWebSite
Результат bool