Partilhar via


SyntaxFactory.IfStatement Método

Definição

Sobrecargas

IfStatement(ExpressionSyntax, StatementSyntax)

Cria uma nova instância ifStatementSyntax.

IfStatement(ExpressionSyntax, StatementSyntax, ElseClauseSyntax)

Cria uma nova instância ifStatementSyntax.

IfStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax, StatementSyntax, ElseClauseSyntax)

Cria uma nova instância ifStatementSyntax.

IfStatement(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax, ElseClauseSyntax)

Cria uma nova instância ifStatementSyntax.

IfStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax, ElseClauseSyntax)

Cria uma nova instância ifStatementSyntax.

IfStatement(ExpressionSyntax, StatementSyntax)

Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs

Cria uma nova instância ifStatementSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::IfStatementSyntax ^ IfStatement(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^ statement);
public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement);
static member IfStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax
Public Shared Function IfStatement (condition As ExpressionSyntax, statement As StatementSyntax) As IfStatementSyntax

Parâmetros

condition
ExpressionSyntax
statement
StatementSyntax

Retornos

Aplica-se a

IfStatement(ExpressionSyntax, StatementSyntax, ElseClauseSyntax)

Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs

Cria uma nova instância ifStatementSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::IfStatementSyntax ^ IfStatement(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^ statement, Microsoft::CodeAnalysis::CSharp::Syntax::ElseClauseSyntax ^ else);
public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax else);
public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax? else);
static member IfStatement : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax
Public Shared Function IfStatement (condition As ExpressionSyntax, statement As StatementSyntax, else As ElseClauseSyntax) As IfStatementSyntax

Parâmetros

condition
ExpressionSyntax
statement
StatementSyntax

Retornos

Aplica-se a

IfStatement(SyntaxList<AttributeListSyntax>, ExpressionSyntax, StatementSyntax, ElseClauseSyntax)

Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs

Cria uma nova instância ifStatementSyntax.

public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax? else);
static member IfStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax
Public Shared Function IfStatement (attributeLists As SyntaxList(Of AttributeListSyntax), condition As ExpressionSyntax, statement As StatementSyntax, else As ElseClauseSyntax) As IfStatementSyntax

Parâmetros

condition
ExpressionSyntax
statement
StatementSyntax

Retornos

Aplica-se a

IfStatement(SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax, ElseClauseSyntax)

Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs
Origem:
IfStatementSyntax.cs

Cria uma nova instância ifStatementSyntax.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::IfStatementSyntax ^ IfStatement(Microsoft::CodeAnalysis::SyntaxToken ifKeyword, Microsoft::CodeAnalysis::SyntaxToken openParenToken, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::SyntaxToken closeParenToken, Microsoft::CodeAnalysis::CSharp::Syntax::StatementSyntax ^ statement, Microsoft::CodeAnalysis::CSharp::Syntax::ElseClauseSyntax ^ else);
public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.SyntaxToken ifKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxToken closeParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax else);
public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.SyntaxToken ifKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxToken closeParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax? else);
static member IfStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax
Public Shared Function IfStatement (ifKeyword As SyntaxToken, openParenToken As SyntaxToken, condition As ExpressionSyntax, closeParenToken As SyntaxToken, statement As StatementSyntax, else As ElseClauseSyntax) As IfStatementSyntax

Parâmetros

ifKeyword
SyntaxToken
openParenToken
SyntaxToken
condition
ExpressionSyntax
closeParenToken
SyntaxToken
statement
StatementSyntax

Retornos

Aplica-se a

IfStatement(SyntaxList<AttributeListSyntax>, SyntaxToken, SyntaxToken, ExpressionSyntax, SyntaxToken, StatementSyntax, ElseClauseSyntax)

Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs
Origem:
Syntax.xml.Main.Generated.cs

Cria uma nova instância ifStatementSyntax.

public static Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax IfStatement (Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> attributeLists, Microsoft.CodeAnalysis.SyntaxToken ifKeyword, Microsoft.CodeAnalysis.SyntaxToken openParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxToken closeParenToken, Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax statement, Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax? else);
static member IfStatement : Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.AttributeListSyntax> * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.StatementSyntax * Microsoft.CodeAnalysis.CSharp.Syntax.ElseClauseSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.IfStatementSyntax
Public Shared Function IfStatement (attributeLists As SyntaxList(Of AttributeListSyntax), ifKeyword As SyntaxToken, openParenToken As SyntaxToken, condition As ExpressionSyntax, closeParenToken As SyntaxToken, statement As StatementSyntax, else As ElseClauseSyntax) As IfStatementSyntax

Parâmetros

ifKeyword
SyntaxToken
openParenToken
SyntaxToken
condition
ExpressionSyntax
closeParenToken
SyntaxToken
statement
StatementSyntax

Retornos

Aplica-se a