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
Показать файл Открыть проект

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

Свойство Тип Описание
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