C# 클래스 WixSharp.WebSite

This class defines website attributes. It is a close equivalent of WebSite WiX element.
상속: WixEntity
파일 보기 프로젝트 열기: Eun/WixSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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