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
파일 보기 프로젝트 열기: Eun/WixSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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