Table of Contents

Class ActionPathSegment

Namespace
System.Web.Http.OData.Routing
Assembly
System.Web.Http.OData.dll

An ODataPathSegment implementation representing an action invocation.

public class ActionPathSegment : ODataPathSegment
Inheritance
ActionPathSegment
Inherited Members

Constructors

ActionPathSegment(IEdmFunctionImport)

Initializes a new instance of the ActionPathSegment class.

public ActionPathSegment(IEdmFunctionImport action)

Parameters

action IEdmFunctionImport

The action being invoked.

ActionPathSegment(string)

Initializes a new instance of the ActionPathSegment class.

public ActionPathSegment(string actionName)

Parameters

actionName string

Name of the action.

Properties

Action

Gets the action being invoked.

public IEdmFunctionImport Action { get; }

Property Value

IEdmFunctionImport

ActionName

Gets the name of the action.

public string ActionName { get; }

Property Value

string

SegmentKind

Gets the segment kind for the current segment.

public override string SegmentKind { get; }

Property Value

string

Methods

GetEdmType(IEdmType)

Gets the EDM type for this segment.

public override IEdmType GetEdmType(IEdmType previousEdmType)

Parameters

previousEdmType IEdmType

The EDM type of the previous path segment.

Returns

IEdmType

The EDM type for this segment.

GetEntitySet(IEdmEntitySet)

Gets the entity set for this segment.

public override IEdmEntitySet GetEntitySet(IEdmEntitySet previousEntitySet)

Parameters

previousEntitySet IEdmEntitySet

The entity set of the previous path segment.

Returns

IEdmEntitySet

The entity set for this segment.

ToString()

Returns a string that represents this instance.

public override string ToString()

Returns

string

A string that represents this instance.