C# Class 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.

Inheritance: WixEntity
Afficher le fichier Open project: Eun/WixSharp

Méthodes publiques

Свойство Type Description
Message string
Value string

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

LaunchCondition() protected méthode

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
Résultat System.Xml.Linq

LaunchCondition() public méthode

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.
Résultat System.Xml.Linq

ToCData() public méthode

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
Résultat System.Xml.Linq.XCData

ToString() public méthode

Returns the WiX LaunchCondition as a string.
public ToString ( ) : string
Résultat string

Property Details

Message public_oe property

The message to be displayed during the installation if LaunchCondition evaluated as False.
public string Message
Résultat string

Value public_oe property

String value of WiX Condition.
public string Value
Résultat string