C# Класс 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.

Наследование: WixEntity
Показать файл Открыть проект Примеры использования класса

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

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

Открытые методы

Метод Описание
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.

Описание методов

Condition() публичный Метод

Initializes a new instance of the Condition class.
public Condition ( string value ) : System
value string The value of the WiX condition expression.
Результат System

Create() публичный статический Метод

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.
Результат Condition

GetDistinctProperties() публичный Метод

Extracts the distinct names of properties from the condition string expression.
public GetDistinctProperties ( ) : string[]
Результат string[]

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 Condition as a string.
public ToString ( ) : string
Результат string

Описание свойств

Always публичное статическое свойство

String representation of "always true" condition of the WiX Condition.
public static Condition Always
Результат Condition

BeingRemoved публичное статическое свойство

String representation of the REMOVE="ALL" condition of the WiX Condition.
public static Condition BeingRemoved
Результат Condition

ClrDialog_BackPressed публичное статическое свойство

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
Результат Condition

ClrDialog_CancelPressed публичное статическое свойство

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
Результат Condition

ClrDialog_NextPressed публичное статическое свойство

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
Результат Condition

Installed публичное статическое свойство

String representation of the Installed condition of the WiX Condition.
public static Condition Installed
Результат Condition

NOT_BeingRemoved публичное статическое свойство

String representation of the NOT (REMOVE="ALL") condition of the WiX Condition.
public static Condition NOT_BeingRemoved
Результат Condition

NOT_Installed публичное статическое свойство

String representation of the NOT Installed condition of the WiX Condition.
public static Condition NOT_Installed
Результат Condition

NOT_Silent публичное статическое свойство

String representation of the UILevel > 3 condition of the WiX Condition.
public static Condition NOT_Silent
Результат Condition

Net20_Installed публичное статическое свойство

The .NET2.0 installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net20_Installed
Результат Condition

Net30_SP_Installed публичное статическое свойство

The .NET3.0 SP installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net30_SP_Installed
Результат Condition

Net35_Installed публичное статическое свойство

The .NET3.5 installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net35_Installed
Результат Condition

Net45_Installed публичное статическое свойство

The .NET4.5 installed. This condition is to be used in Project.SetNetFxPrerequisite.
public static Condition Net45_Installed
Результат Condition

Silent публичное статическое свойство

String representation of the UILevel < 4 condition of the WiX Condition.
public static Condition Silent
Результат Condition

Value публичное свойство

String value of WiX Condition.
public string Value
Результат string