다음을 통해 공유


SyntaxFactory.SingleLineIfStatement 메서드

정의

오버로드

SingleLineIfStatement(ExpressionSyntax)

한 줄 "If ... 다음... 그 외 ..." 문을.

SingleLineIfStatement(ExpressionSyntax, SyntaxList<StatementSyntax>, SingleLineElseClauseSyntax)

한 줄 "If ... 다음... 그 외 ..." 문을.

SingleLineIfStatement(SyntaxToken, ExpressionSyntax, SyntaxToken, SyntaxList<StatementSyntax>, SingleLineElseClauseSyntax)

한 줄 "If ... 다음... 그 외 ..." 문을.

SingleLineIfStatement(ExpressionSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

한 줄 "If ... 다음... 그 외 ..." 문을.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineIfStatementSyntax ^ SingleLineIfStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax SingleLineIfStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition);
static member SingleLineIfStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax
Public Shared Function SingleLineIfStatement (condition As ExpressionSyntax) As SingleLineIfStatementSyntax

매개 변수

condition
ExpressionSyntax

평가할 조건 식입니다.

반환

적용 대상

SingleLineIfStatement(ExpressionSyntax, SyntaxList<StatementSyntax>, SingleLineElseClauseSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

한 줄 "If ... 다음... 그 외 ..." 문을.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineIfStatementSyntax ^ SingleLineIfStatement(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ elseClause);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax SingleLineIfStatement (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax elseClause);
static member SingleLineIfStatement : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax
Public Shared Function SingleLineIfStatement (condition As ExpressionSyntax, statements As SyntaxList(Of StatementSyntax), elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax

매개 변수

condition
ExpressionSyntax

평가할 조건 식입니다.

statements
SyntaxList<StatementSyntax>

조건 식이 true로 평가되는 경우 실행할 문 목록입니다. 여러 문을 콜론으로 구분해야 합니다.

elseClause
SingleLineElseClauseSyntax

조건식이 false로 평가되는 경우 실행할 "Else" 절입니다.

반환

적용 대상

SingleLineIfStatement(SyntaxToken, ExpressionSyntax, SyntaxToken, SyntaxList<StatementSyntax>, SingleLineElseClauseSyntax)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

한 줄 "If ... 다음... 그 외 ..." 문을.

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineIfStatementSyntax ^ SingleLineIfStatement(Microsoft::CodeAnalysis::SyntaxToken ifKeyword, Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ condition, Microsoft::CodeAnalysis::SyntaxToken thenKeyword, Microsoft::CodeAnalysis::SyntaxList<Microsoft::CodeAnalysis::VisualBasic::Syntax::StatementSyntax ^> statements, Microsoft::CodeAnalysis::VisualBasic::Syntax::SingleLineElseClauseSyntax ^ elseClause);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax SingleLineIfStatement (Microsoft.CodeAnalysis.SyntaxToken ifKeyword, Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax condition, Microsoft.CodeAnalysis.SyntaxToken thenKeyword, Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> statements, Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax elseClause);
static member SingleLineIfStatement : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.SyntaxList<Microsoft.CodeAnalysis.VisualBasic.Syntax.StatementSyntax> * Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineElseClauseSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.SingleLineIfStatementSyntax
Public Shared Function SingleLineIfStatement (ifKeyword As SyntaxToken, condition As ExpressionSyntax, thenKeyword As SyntaxToken, statements As SyntaxList(Of StatementSyntax), elseClause As SingleLineElseClauseSyntax) As SingleLineIfStatementSyntax

매개 변수

ifKeyword
SyntaxToken

"If" 키워드입니다.

condition
ExpressionSyntax

평가할 조건 식입니다.

thenKeyword
SyntaxToken

"Then" 키워드입니다.

statements
SyntaxList<StatementSyntax>

조건 식이 true로 평가되는 경우 실행할 문 목록입니다. 여러 문을 콜론으로 구분해야 합니다.

elseClause
SingleLineElseClauseSyntax

조건식이 false로 평가되는 경우 실행할 "Else" 절입니다.

반환

적용 대상