Share via


PredCompareExpr Class

Represents a predicate expression that can be used in a conditional statement.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.XEvent.Predicate
    Microsoft.SqlServer.Management.XEvent.PredExpr
      Microsoft.SqlServer.Management.XEvent.PredCompareExpr

Namespace:  Microsoft.SqlServer.Management.XEvent
Assembly:  Microsoft.SqlServer.Management.XEvent (in Microsoft.SqlServer.Management.XEvent.dll)

Syntax

'Declaration
Public NotInheritable Class PredCompareExpr _
    Inherits PredExpr
'Usage
Dim instance As PredCompareExpr
public sealed class PredCompareExpr : PredExpr
public ref class PredCompareExpr sealed : public PredExpr
[<SealedAttribute>]
type PredCompareExpr =  
    class 
        inherit PredExpr 
    end
public final class PredCompareExpr extends PredExpr

The PredCompareExpr type exposes the following members.

Constructors

  Name Description
Public method PredCompareExpr Initializes a new instance of the PredCompareExpr class.

Top

Properties

  Name Description
Public property Operand Gets the operand.
Public property Operator Gets the compare operator.
Public property Value Gets the value.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Examples

The following expression could be used in a PredCompareExpr object.

sqlserver.database_id=7

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.XEvent Namespace