共用方式為


IfStatement Class

Definition

Represents the if statement.

[System.Serializable]
public class IfStatement : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
[<System.Serializable>]
type IfStatement = class
    inherit TSqlStatement
Public Class IfStatement
Inherits TSqlStatement
Inheritance
Attributes

Constructors

IfStatement()

Fields

Uninitialized

Constant to indicate and uninitialized token.

(Inherited from TSqlFragment)

Properties

ElseStatement

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

FirstTokenIndex

Gets or sets the first index of the token.

(Inherited from TSqlFragment)
FragmentLength

Defines the number of characters the fragment takes up in the script it was parsed.

(Inherited from TSqlFragment)
LastTokenIndex

Gets or sets the last index of the token.

(Inherited from TSqlFragment)
Predicate

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

ScriptTokenStream

Gets or sets the script token stream.

(Inherited from TSqlFragment)
StartColumn

Gets the start column.

(Inherited from TSqlFragment)
StartLine

Gets the start line.

(Inherited from TSqlFragment)
StartOffset

Defines the character offset of fragments starting location in the script it was parsed.

(Inherited from TSqlFragment)
ThenStatement

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

Methods

Accept(TSqlFragmentVisitor)

Accepts visitor

AcceptChildren(TSqlFragmentVisitor)

Accepts visitor for Children

Applies to