Share via


ConstantNode Class

Represents a primitive constant value.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataAnnotatable
    Microsoft.Data.OData.Query.SemanticAst.QueryNode
      Microsoft.Data.OData.Query.SemanticAst.SingleValueNode
        Microsoft.Data.OData.Query.SemanticAst.ConstantNode

Namespace:  Microsoft.Data.OData.Query.SemanticAst
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

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

The ConstantNode type exposes the following members.

Constructors

  Name Description
Public method ConstantNode(Object) Initializes a new instance of the ConstantNode class.
Public method ConstantNode(Object, String) Create a ConstantNode

Top

Properties

  Name Description
Public property Kind Gets the kind of this node. (Inherited from SingleValueNode.)
Public property LiteralText Get or Set the literal text for this node's value, formatted according to the OData URI literal formatting rules. May be null if the text was not provided at construction time.
Public property TypeReference Gets the resource type of the single value this node represents. (Overrides SingleValueNode.TypeReference.)
Public property Value Gets the primitive constant value.

Top

Methods

  Name Description
Public method Accept<T>(QueryNodeVisitor<T>) Accept a QueryNodeVisitor<T> to walk a tree of QueryNodes. (Overrides QueryNode.Accept<T>(QueryNodeVisitor<T>).)
Public method Accept<T>(QueryNodeVisitor<T>) Accept a QueryNodeVisitor<T> that walks a tree of QueryNodes. (Inherited from QueryNode.)
Public method Equals (Inherited from Object.)
Public method GetAnnotation<T> Gets or sets the annotation by type. (Inherited from ODataAnnotatable.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method SetAnnotation<T> Sets an annotation of type T. (Inherited from ODataAnnotatable.)
Public method ToString (Inherited from Object.)

Top

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.Data.OData.Query.SemanticAst Namespace