CodeConditionStatement Constructor (CodeExpression^, array<CodeStatement^>^)

 

Initializes a new instance of the CodeConditionStatement class using the specified condition and statements.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public:
CodeConditionStatement(
	CodeExpression^ condition,
	... array<CodeStatement^>^ trueStatements
)

Parameters

condition
Type: System.CodeDom::CodeExpression^

A CodeExpression that indicates the expression to evaluate.

trueStatements
Type: array<System.CodeDom::CodeStatement^>^

An array of type CodeStatement containing the statements to execute if the condition is true.

.NET Framework
Available since 1.1
Return to top
Show: