IfStatement IfStatement IfStatement Class

Definition

Represents the if statement.

public ref class IfStatement : Microsoft::SqlServer::TransactSql::ScriptDom::TSqlStatement
public class IfStatement : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
Public Class IfStatement
Inherits TSqlStatement
Inheritance

Constructors

IfStatement() IfStatement() IfStatement()

Initializes a new instance of the IfStatement class.

Properties

ElseStatement ElseStatement ElseStatement

Gets the statement that will be executed if the predicate evaluates false. Optional, may be null.

FirstTokenIndex FirstTokenIndex FirstTokenIndex

Gets or sets the first token index.

(Inherited from TSqlFragment)
FragmentLength FragmentLength FragmentLength

Gets the fragment length.

(Inherited from TSqlFragment)
LastTokenIndex LastTokenIndex LastTokenIndex

Gets or sets the last token index.

(Inherited from TSqlFragment)
Predicate Predicate Predicate

Gets the expression that is the predicate for the if statement. This should be a boolean expression.

ScriptTokenStream ScriptTokenStream ScriptTokenStream

Gets or sets a list of token streams.

(Inherited from TSqlFragment)
StartColumn StartColumn StartColumn

Gets the starting column.

(Inherited from TSqlFragment)
StartLine StartLine StartLine

Gets the starting line.

(Inherited from TSqlFragment)
StartOffset StartOffset StartOffset

Gets the fragment start offset value.

(Inherited from TSqlFragment)
ThenStatement ThenStatement ThenStatement

Gets the statement that will be executed if the predicate evaluates true.

Methods

Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor) Accept(TSqlFragmentVisitor)

Accepts the visitor.

AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor) AcceptChildren(TSqlFragmentVisitor)

Accepts the visitor for Children.

Fields

Uninitialized Uninitialized Uninitialized

Value is -1.

(Inherited from TSqlFragment)

Applies to