C# Class WixSharp.WebSite

This class defines website attributes. It is a close equivalent of WebSite WiX element.
Inheritance: WixEntity
ファイルを表示 Open project: Eun/WixSharp Class Usage Examples

Public Properties

Property Type Description
AddressesDefinition string
Description string
InstallWebSite bool

Public Methods

Method Description
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.

Private Methods

Method Description
ProcessAddressesDefinition ( ) : void

Method Details

WebSite() public method

Initializes a new instance of the WebSite class.
public WebSite ( string name ) : System
name string The name.
return System

WebSite() public method

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.
return System

WebSite() public method

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.
return System

Property Details

AddressesDefinition public_oe property

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
return string

Description public_oe property

This is the name of the web site that will show up in the IIS management console.
public string Description
return string

InstallWebSite public_oe property

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
return bool