Επεξεργασία

Κοινή χρήση μέσω


CodeConditionStatement Constructors

Definition

Initializes a new instance of the CodeConditionStatement class.

Overloads

CodeConditionStatement()

Initializes a new instance of the CodeConditionStatement class.

CodeConditionStatement(CodeExpression, CodeStatement[])

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

CodeConditionStatement(CodeExpression, CodeStatement[], CodeStatement[])

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

CodeConditionStatement()

Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs

Initializes a new instance of the CodeConditionStatement class.

public:
 CodeConditionStatement();
public CodeConditionStatement ();
Public Sub New ()

Applies to

CodeConditionStatement(CodeExpression, CodeStatement[])

Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs

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

public:
 CodeConditionStatement(System::CodeDom::CodeExpression ^ condition, ... cli::array <System::CodeDom::CodeStatement ^> ^ trueStatements);
public CodeConditionStatement (System.CodeDom.CodeExpression condition, params System.CodeDom.CodeStatement[] trueStatements);
new System.CodeDom.CodeConditionStatement : System.CodeDom.CodeExpression * System.CodeDom.CodeStatement[] -> System.CodeDom.CodeConditionStatement
Public Sub New (condition As CodeExpression, ParamArray trueStatements As CodeStatement())

Parameters

condition
CodeExpression

A CodeExpression that indicates the expression to evaluate.

trueStatements
CodeStatement[]

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

See also

Applies to

CodeConditionStatement(CodeExpression, CodeStatement[], CodeStatement[])

Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs
Source:
CodeConditionStatement.cs

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

public:
 CodeConditionStatement(System::CodeDom::CodeExpression ^ condition, cli::array <System::CodeDom::CodeStatement ^> ^ trueStatements, cli::array <System::CodeDom::CodeStatement ^> ^ falseStatements);
public CodeConditionStatement (System.CodeDom.CodeExpression condition, System.CodeDom.CodeStatement[] trueStatements, System.CodeDom.CodeStatement[] falseStatements);
new System.CodeDom.CodeConditionStatement : System.CodeDom.CodeExpression * System.CodeDom.CodeStatement[] * System.CodeDom.CodeStatement[] -> System.CodeDom.CodeConditionStatement
Public Sub New (condition As CodeExpression, trueStatements As CodeStatement(), falseStatements As CodeStatement())

Parameters

condition
CodeExpression

A CodeExpression that indicates the condition to evaluate.

trueStatements
CodeStatement[]

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

falseStatements
CodeStatement[]

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

See also

Applies to