This topic has not yet been rated - Rate this topic

IfStatement Class

Represents the IF statement.

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)
[SerializableAttribute]
public class IfStatement : TSqlStatement

The IfStatement type exposes the following members.

  NameDescription
Public methodIfStatementInitializes a new instance of the IfStatement class.
Top
  NameDescription
Public propertyElseStatementGets or sets the statement that will be executed if the predicate evaluates false.
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 or sets the expression that is the predicate for the IF statement.
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 or sets the statement that will be executed if the predicate evaluates true.
Top
  NameDescription
Public methodAcceptEntry point for a given visitor. (Overrides TSqlFragment.Accept(TSqlFragmentVisitor).)
Public methodAcceptChildrenCalls Accept on the children with the given visitor. (Overrides TSqlStatement.AcceptChildren(TSqlFragmentVisitor).)
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (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)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.