CodeConditionStatement Constructor (CodeExpression, CodeStatement[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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,
	params CodeStatement[] trueStatements
)

Parameters

condition
Type: System.CodeDom.CodeExpression

A CodeExpression that indicates the expression to evaluate.

trueStatements
Type: 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: