Delen via


IfStatement.ElseStatement Property

Gets the statement that will be executed if the predicate evaluates false. Optional, may be nulla null reference (Nothing in Visual Basic).

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

'Declaration
Public Property ElseStatement As TSqlStatement 
    Get 
    Set
'Usage
Dim instance As IfStatement 
Dim value As TSqlStatement 

value = instance.ElseStatement

instance.ElseStatement = value
public TSqlStatement ElseStatement { get; set; }
public:
property TSqlStatement^ ElseStatement {
    TSqlStatement^ get ();
    void set (TSqlStatement^ value);
}
member ElseStatement : TSqlStatement with get, set
function get ElseStatement () : TSqlStatement 
function set ElseStatement (value : TSqlStatement)

Property Value

Type: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlStatement
The statement that will be executed.

See Also

Reference

IfStatement Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace