Skip to main content

Definition

Assembly: Microsoft.OData.Mcp.Core.dll Namespace: Microsoft.OData.Mcp.Core.Routing Inheritance: System.Object

Syntax

Microsoft.OData.Mcp.Core.Routing.ODataRouteOptionsResolver

Summary

Resolves OData route options to determine route patterns.

Constructors

.ctor

Initializes a new instance of the ODataRouteOptionsResolver class.

Syntax

public ODataRouteOptionsResolver()

.ctor Inherited

Inherited from object

Syntax

public Object()

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

FormatQueryOption

Formats a system query option based on dollar prefix settings.

Syntax

public string FormatQueryOption(string option)

Parameters

NameTypeDescription
optionstringThe option name without prefix (e.g., “filter”, “select”).

Returns

Type: string The formatted option name.

GetBatchPath

Gets the batch endpoint path based on OData options.

Syntax

public string GetBatchPath()

Returns

Type: string The batch path.

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetMetadataPath

Gets the metadata endpoint path based on OData options.

Syntax

public string GetMetadataPath()

Returns

Type: string The metadata path.

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?

UsesDollarPrefix

Determines whether dollar sign prefixes are enabled for OData routes.

Syntax

public bool UsesDollarPrefix()

Returns

Type: bool True if dollar prefixes are enabled; otherwise, false.