Delen via


IfStatement.Predicate Property

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

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

Syntax

'Declaration
Public Property Predicate As BooleanExpression 
    Get 
    Set
'Usage
Dim instance As IfStatement 
Dim value As BooleanExpression 

value = instance.Predicate

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

Property Value

Type: Microsoft.SqlServer.TransactSql.ScriptDom.BooleanExpression
The boolean expression that is the predicate for the if statement.

See Also

Reference

IfStatement Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace