Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IfStatement Class

SQL Server 2012

Represents the if statement.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)
public class IfStatement extends TSqlStatement

The IfStatement type exposes the following members.

  NameDescription
Public methodIfStatementInitializes a new instance of the IfStatement class.
Top
  NameDescription
Public propertyElseStatementGets the statement that will be executed if the predicate evaluates false. Optional, may be a null reference (Nothing in Visual Basic).
Public propertyFirstTokenIndexGets or sets the first token index. (Inherited from TSqlFragment.)
Public propertyFragmentLengthGets the fragment length. (Inherited from TSqlFragment.)
Public propertyLastTokenIndexGets or sets the last token index. (Inherited from TSqlFragment.)
Public propertyPredicateGets the expression that is the predicate for the if statement. This should be a boolean expression.
Public propertyScriptTokenStreamGets or sets a list of token streams. (Inherited from TSqlFragment.)
Public propertyStartColumnGets the starting column. (Inherited from TSqlFragment.)
Public propertyStartLineGets the starting line. (Inherited from TSqlFragment.)
Public propertyStartOffsetGets the fragment start offset value. (Inherited from TSqlFragment.)
Public propertyThenStatementGets the statement that will be executed if the predicate evaluates true.
Top
  NameDescription
Public methodAcceptAccepts the visitor. (Overrides TSqlFragment.Accept(TSqlFragmentVisitor).)
Public methodAcceptChildrenAccepts the visitor for Children. (Overrides TSqlStatement.AcceptChildren(TSqlFragmentVisitor).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.