C# Class WixSharp.Condition

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 Class Usage Examples

Méthodes publiques

Свойство Type Description
Always Condition
BeingRemoved Condition
ClrDialog_BackPressed Condition
ClrDialog_CancelPressed Condition
ClrDialog_NextPressed Condition
Installed Condition
NOT_BeingRemoved Condition
NOT_Installed Condition
NOT_Silent Condition
Net20_Installed Condition
Net30_SP_Installed Condition
Net35_Installed Condition
Net45_Installed Condition
Silent Condition
Value string

Méthodes publiques

Méthode Description
Condition ( string value ) : System

Initializes a new instance of the Condition class.

Create ( string value ) : Condition

Creates WiX Condition condition from the given string value.

GetDistinctProperties ( ) : string[]

Extracts the distinct names of properties from the condition string expression.

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 Condition as a string.

Method Details

Condition() public méthode

Initializes a new instance of the Condition class.
public Condition ( string value ) : System
value string The value of the WiX condition expression.
Résultat System

Create() public static méthode

Creates WiX Condition condition from the given string value.
public static Create ( string value ) : Condition
value string String value of the Condition to be created.
Résultat Condition

GetDistinctProperties() public méthode

Extracts the distinct names of properties from the condition string expression.
public GetDistinctProperties ( ) : string[]
Résultat string[]

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 Condition as a string.
public ToString ( ) : string
Résultat string

Property Details

Always public_oe static_oe property

String representation of "always true" condition of the WiX Condition.
public static Condition Always
Résultat Condition

BeingRemoved public_oe static_oe property

String representation of the REMOVE="ALL" condition of the WiX Condition.
public static Condition BeingRemoved
Résultat Condition

ClrDialog_BackPressed public_oe static_oe property

String representation of the Custom_UI_Command = "back" condition. This condition is triggered when user presses 'Back' button in the CLR Dialog.
public static Condition ClrDialog_BackPressed
Résultat Condition

ClrDialog_CancelPressed public_oe static_oe property

String representation of the Custom_UI_Command = "abort" condition. This condition is triggered when user presses 'Cancel' button in the CLR Dialog.
public static Condition ClrDialog_CancelPressed
Résultat Condition

ClrDialog_NextPressed public_oe static_oe property

String representation of the Custom_UI_Command = "next" condition. This condition is triggered when user presses 'Next' button in the CLR Dialog.
public static Condition ClrDialog_NextPressed
Résultat Condition

Installed public_oe static_oe property

String representation of the Installed condition of the WiX Condition.
public static Condition Installed
Résultat Condition

NOT_BeingRemoved public_oe static_oe property

String representation of the NOT (REMOVE="ALL") condition of the WiX Condition.
public static Condition NOT_BeingRemoved
Résultat Condition

NOT_Installed public_oe static_oe property

String representation of the NOT Installed condition of the WiX Condition.
public static Condition NOT_Installed
Résultat Condition

NOT_Silent public_oe static_oe property

String representation of the UILevel > 3 condition of the WiX Condition.
public static Condition NOT_Silent
Résultat Condition

Net20_Installed public_oe static_oe property

The .NET2.0 installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net20_Installed
Résultat Condition

Net30_SP_Installed public_oe static_oe property

The .NET3.0 SP installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net30_SP_Installed
Résultat Condition

Net35_Installed public_oe static_oe property

The .NET3.5 installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net35_Installed
Résultat Condition

Net45_Installed public_oe static_oe property

The .NET4.5 installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net45_Installed
Résultat Condition

Silent public_oe static_oe property

String representation of the UILevel < 4 condition of the WiX Condition.
public static Condition Silent
Résultat Condition

Value public_oe property

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