OperationSegment Class

A segment representing a call to an action, function, or service operation.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataAnnotatable
    Microsoft.Data.OData.Query.SemanticAst.ODataPathSegment
      Microsoft.Data.OData.Query.SemanticAst.OperationSegment

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

Syntax

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

The OperationSegment type exposes the following members.

Constructors

  Name Description
Public method OperationSegment(IEdmFunctionImport, IEdmEntitySet) Build a segment representing a call to an operation - action, function, or service operation.
Public method OperationSegment(IEnumerable<IEdmFunctionImport>, IEdmEntitySet) Build a segment representing a call to an operation - action, function, or service operation.
Public method OperationSegment(IEnumerable<IEdmFunctionImport>, IEnumerable<OperationSegmentParameter>, IEdmEntitySet) Creates a segment representing a call to an operation - action, function or service operation.

Top

Properties

  Name Description
Public property EdmType Gets the IEdmType of this OperationSegment. (Overrides ODataPathSegment.EdmType.)
Public property EntitySet Gets the IEdmEntitySet containing the entities that this function returns. This will be null if entities are not returned by this operation, or if there is any ambiguity.
Public property Operations Gets the list of possible FunctionImport overloads for this segment.
Public property Parameters Gets the list of parameters for this segment.

Top

Methods

  Name Description
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 Handle Handle a PathSegmentHandler. (Overrides ODataPathSegment.Handle(PathSegmentHandler).)
Public method SetAnnotation<T> Sets an annotation of type T. (Inherited from ODataAnnotatable.)
Public method ToString (Inherited from Object.)
Public method Translate<T>(PathSegmentTranslator<T>) Translate a ODataPathSegment using an implemntation of PathSegmentTranslator<T>. (Inherited from ODataPathSegment.)
Public method Translate<T>(PathSegmentTranslator<T>) Translate a PathSegmentTranslator<T>. (Overrides ODataPathSegment.Translate<T>(PathSegmentTranslator<T>).)

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