C# 클래스 WixSharp.LaunchCondition

Defines WiX Condition. Condition is normally associated with CustomActions or WiX elements (e.g. Shortcut).

Condition is nothing else but an XML friendly string wrapper, containing some predefined (commonly used) condition values. You can either use one of the predefined condition values (static members) or define your by specifying full string representation of the required WiX condition when calling the constructor or static method Create.

상속: WixEntity
파일 보기 프로젝트 열기: Eun/WixSharp

공개 프로퍼티들

프로퍼티 타입 설명
Message string
Value string

공개 메소드들

메소드 설명
LaunchCondition ( string value, string message ) : System.Xml.Linq

Initializes a new instance of the LaunchCondition class with properties/fields initialized with specified parameters

ToCData ( ) : System.Xml.Linq.XCData

Returns the WiX Condition as a T:System.Xml.Linq.XCData. Normally Condition is not designed to be parsed by the XML parser thus it should be embedded as CDATA <Condition><![CDATA[NETFRAMEWORK20="#0"]]></Condition>

ToString ( ) : string

Returns the WiX LaunchCondition as a string.

보호된 메소드들

메소드 설명
LaunchCondition ( ) : System.Xml.Linq

Initializes a new instance of the LaunchCondition class. It is made protected to encourage user to use non-default constructor to handle Escape Characters of the value string properly.

메소드 상세

LaunchCondition() 보호된 메소드

Initializes a new instance of the LaunchCondition class. It is made protected to encourage user to use non-default constructor to handle Escape Characters of the value string properly.
protected LaunchCondition ( ) : System.Xml.Linq
리턴 System.Xml.Linq

LaunchCondition() 공개 메소드

Initializes a new instance of the LaunchCondition class with properties/fields initialized with specified parameters
public LaunchCondition ( string value, string message ) : System.Xml.Linq
value string The value of the WiX condition expression.
message string The message to be displayed during the installation if evaluated as False.
리턴 System.Xml.Linq

ToCData() 공개 메소드

Returns the WiX Condition as a T:System.Xml.Linq.XCData. Normally Condition is not designed to be parsed by the XML parser thus it should be embedded as CDATA <Condition><![CDATA[NETFRAMEWORK20="#0"]]></Condition>
public ToCData ( ) : System.Xml.Linq.XCData
리턴 System.Xml.Linq.XCData

ToString() 공개 메소드

Returns the WiX LaunchCondition as a string.
public ToString ( ) : string
리턴 string

프로퍼티 상세

Message 공개적으로 프로퍼티

The message to be displayed during the installation if LaunchCondition evaluated as False.
public string Message
리턴 string

Value 공개적으로 프로퍼티

String value of WiX Condition.
public string Value
리턴 string